Answered
Why do I get "1x4 cell" instead of a listing of the connected senors?
With no further details supplied, the connected sensors should be in list_csensors=myev3.ConnectedSensors MATLAB 7 and a...

9 years ago | 0

Answered
Why can“t I binarization left lung?
Veronika this is John BG ( <jgb2012@sky.com> ) to remove the MATLAB syntax errors, ignoring the image segmentation itself...

9 years ago | 0

Answered
How to make a "moving" graph for a real time signal along the x-axis?
Hi Jeff this is John BG ( <jgb2012@sky.com> ) you may consider axis shifting x1, dx y1 y2 constant, with axis([...

9 years ago | 20

| accepted

Answered
Efficient Weighted Moving average
Hi Matlab User 1. simulating data clear all,clc V=zeros(25,3);x=V(:,1);y=V(:,2); w=randi([1 9],25,1); w=...

9 years ago | 0

| accepted

Answered
How to pass summation of function handles to fminsearch
Hi Albert 1. I have changed the syntax so it doesn't return error, could you please be so kind to confirm that this way is...

9 years ago | 0

Answered
str2func vectorize input x1, x2 to x
Hi Qun Wu with the following syntax it works ok str2 = 'x1 + u - x2'; f2 = str2func(['@(x1,x2,u)', str2]); f2(1,2,3) ...

9 years ago | 1

Answered
error window to a model function after nlinfit
Hi Debi clear all dx=.001;x=[-2*pi:dx:2*pi]; a0=5; da=.1; alow=a0-da; ahigh=a0+da; a=[alow:0....

9 years ago | 0

| accepted

Answered
A function that computes the sum of a geometric series.
Hi Patrick clear all,clc N=3 r=3 R=[1:1:r] sr=0 for k=1:1:r sr=sr+R(k).^[1:1:N] end ...

9 years ago | 5

Answered
test values of matrix without loop to optimize my function
Hi Telkab01 a=2160; b=1434; % image size ni=10 % number of images S % matrix containing the images with format S(a(i...

9 years ago | 0

Answered
How to plot this function in matlab?
Hi Ahmad with new fplot is even easier a=1,b=2;fplot(@(x) exp((x-b)/a)) if you find this answer useful would you ple...

9 years ago | 0

Answered
How can i find centering of matrix
Hi Sara I found a definition of Matrix Centring in <http://stackoverflow.com/questions/37375213/centering-matrix-in-matlab...

9 years ago | 0

Answered
how to find percentage of similarity between two arrays.
Hi Aditya This is John BG ( jgb2012@sky.com ) the following solves this question, and your other question <https://uk.m...

9 years ago | 1

Answered
Mean and 3-sigma in Lognormal plots
Hi Kash022 1. The attached function lognormal_pdf_123sigma_locations.m calculates the non symmetric locations of +-sigma...

9 years ago | 3

Answered
how many for loops would be needed to loop through each value of two dimensional array
Greg it depends on the processing you want to perform and the type of 2D matrix you have. 1. If the indices are not to ...

9 years ago | 0

Answered
Rotation of a two orthogonal vectors
Hi Dmitry you have to build the 3D rotation matrix and then apply it to each vector <</matlabcentral/answers/uploaded_fi...

9 years ago | 0

| accepted

Answered
Summation of for loop values-infinite series
ok 1. My understanding of your question, is that if you start with a mesh, then there shouldn't be any need to loop be...

9 years ago | 1

Answered
Do I need symbolic math toolbox to graph a function such as f(x)=ln(x) or f(x, y)=y^2/x
Hi Emilia if it's about just plotting a function, there is a new function that does not require the symbolic Tool box called...

9 years ago | 1

Answered
My code for isn't working. To store iterations from a FOR loop into a single variable as a single row vector
Hi Moses 1. add ; after end 2. MATLAB is case sensitive, X capital is not used and then dec2base expects undeclared ...

9 years ago | 0

| accepted

Answered
Need Help, Error in for loop
Hi CM got your code to work, but not sure the result is what you expect, please confirm T=1.2; maxiter=15; P=[0:2...

9 years ago | 0

Answered
Error using mvncdf: "SIGMA must be a square, symmetric, positive definite matrix."
Josh your function E doesn't seem to work correctly for some input values, for instance E([5 -5]) ans = 0 ...

9 years ago | 1

Answered
Convolution function and shifting
fixed it, thanks for pointing out that the result was not aligned. Please have a look and let me know if now this deserves an...

9 years ago | 1

Answered
Convolution function and shifting
Hi thatguy14 I have fixed your script, it didn't have a time reference. MATLAB functions conv and conv2 do not have time r...

9 years ago | 2

Answered
My values for f(x) are right but values for p(x) and |f(x) -p(x)| are wrong. What am I doing wrong in my code?
Hi Victoria now it works ok 1. your function function Chebyshev(f,p,x) L = length(p); T = zeros(L,L); F =...

9 years ago | 0

Answered
codegen error: The left-hand side has been constrained to be non-complex, but the right-hand side is complex
Hi ChipMonk Now your translation moves, but I had to randi variables *Nb_out* and *z_in* with guessed sizes: Nb_out=(Nb_...

9 years ago | 0

Answered
figure(2) not opening a new window, simply overwrites figure(1)
Hi Chris without any code to check, the problem you mention happens when for instance the second plot sends data to same hand...

9 years ago | 0

Answered
I have a question about checking if two integers have matching digits in the right area
Akhil even easier 1. your data n = 1234;x = 6243; 2. single line sum(~(double(num2str(n))-double(num2...

9 years ago | 1

| accepted

Answered
Writing an exponential equation in the title
Akhil you mean this a=8.56;n=0.68; figure; title(['y = ' num2str(a) ' x^{' num2str(n) '}' ]); <</matlabcentral/...

9 years ago | 8

Answered
Find the consecutive positive and negative elements for the entire array
Jayanta you are almost there, all left is is 1. to accumulate the indices that your loop is already finding. You curr...

9 years ago | 2

Answered
Zeros of a complex surface
wrong approach, people take abs(Z)==0 to solve the problem mentioned in your question PRECISELY because whem real(Z)==0 && i...

9 years ago | 0

Answered
min/max values in 3 dimensional arrays
Hi Mike the command histogram generates all you need for this question: 1. your data A=[15, 1, 5.23; 15, 2, 6.33; 1...

9 years ago | 0

| accepted

Load more