Question


How to simplify the for loop for 3D matrix?
I have the following code, where I am looking to eliminate only the outer for-loop (k) and include 'k' inside the inner loop. ...

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


How to write a matlab code to perform moving compuation for any equation?
Lets say I have a vector of 1000 random numbers and want to sum every 30 numbers of the vector and store it in a variable.

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


Value of cross correlation in matlab?
The cross correlation function xcorr in matlab provides the lag between two signals. But, Is there any matlab function that calc...

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


Is there any matlab function to calculate moving mean square error?
I am looking for a way to calculate mean square error for every 'n' sample in a signal of length N (total number of samples)

plus d'un an il y a | 2 réponses | 0

2

réponses

Question


How to calculate a running value of a function for every 30 samples?
clear all; clc; Nt= 2000; % Total samples d = randn(1,Nt); ratioCompute = sum(d)/mean(d); I need calculate this ratioCo...

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


How to find coordinates of intersecting line?
Hi, I have plot which is shown below and there is black (dashed) vertical line in x axis at 3. I need to find the coordinates ...

plus d'un an il y a | 2 réponses | 0

2

réponses

Question


How to know the passband of the savitzky golay matlab filter?
Hi, The matlab savitzky golar filter which is a low pass filter takes inputs as order and frame length. sgolayfilt(x,order,fra...

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


How to make decreasing quadratic curve?
Hi, I am looking a decreaing quadratic of red colour in the image below. But when I script, I get the curve (in blue). Can someo...

plus d'un an il y a | 2 réponses | 0

2

réponses

Question


How to create a random and smooth varying rpm profile?
Hi, I am trying to create an rpm profile with rpm- varying between 1190 rm to 1210 rpm . Could someone help me on how to crea...

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


How to fix the precession difference error of variables in matlab?
I have 2 data sets named T and T2 as shown in the below figure with values ranging with a precession of 1e-5. The expected ma...

plus d'un an il y a | 2 réponses | 0

2

réponses

Question


How to convert long to scientific e format in plots legend?
txt = ['lambda = ',num2str(lambda(check))]; plot(1:100, abs(Arec(:,2000)),'DisplayName',txt)% capon legend show How to change...

presque 2 ans il y a | 1 réponse | 0

1

réponse

Question


How to solve this complicated expression to get real roots?
The following is a complicated expression for which I need to find a real value for such that the expression equals to zero: ...

environ 2 ans il y a | 1 réponse | 0

1

réponse

Question


How to solve the following type of equation that includes summation in matlab?
How to find an expression for using matlab, so that the below equation equals to zero.

environ 2 ans il y a | 1 réponse | 0

1

réponse

Question


How to allign Y axis of a image with out reversing image?
The axis of the image is not alligned with the coordinate system. Could someone help in this regard? If I use set(gca,'YDir','no...

environ 2 ans il y a | 1 réponse | 1

1

réponse

Question


How to plot imagesc plot over .jpg image?
The result of this plot only shows image 'Top.jpg' with a colorbar, but I am looking for imagesc plot over the rgb image. figur...

environ 2 ans il y a | 1 réponse | 0

1

réponse

Question


How to add colormap on an image?
Add colormap on a .png/.jpeg image.

plus de 2 ans il y a | 2 réponses | 0

2

réponses

Question


How to multiply row of matrix A with column of matrix B?
A is 121 x 36 matrix B is 36 x 121 matrix The result C should be 121 x 1 matrix. May I know how should I multiply a row of ...

plus de 2 ans il y a | 2 réponses | 0

2

réponses

Question


How to perform pinv for each column in a complete matrix?
A=[1 5 9;2 6 10;3 7 11;4 8 12] B = pinv(A); I want to perform pinv(A) to each column. Can some help me? No loops please.

plus de 2 ans il y a | 1 réponse | 0

0

réponse

Question


How to perform pseudo inverse with set of elements in a matrix?
A=(1:12).'; B=(1:4).'; C = pinv(reshape(A,length(B),[]))*B; D = pinv(A(1:4))*B % D should be equal to first element of C I...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Question


How to muliply non equal vectors with slicing?
A = 1:12; B = 1:4; I am looking for a function that performs multiplication as follows: Matrix B has 4 elements and matrix A ...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Question


How to add gray to out of range in the colormap?
Hi, How to add gray color to out of range colormap, inorder to have bettter visulaization. In the following code, I need gray...

plus de 2 ans il y a | 2 réponses | 0

2

réponses

Question


3d plots with multi inputs
Hi, I have coordinates in 3d i.e. dataset X,Y,Z and array C containing values corresponding to each coordinate. I am looking ...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Question


How to solve aliasing affect in signal?
clear all; clc; fs = 8000; % sampling frequency f1 = 1000; % frequency 1 f2 = 6000; % frequency 1 dt = 1/fs; T = 0.2; ...

presque 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to solve this error :Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException?
I get following error in matlab: Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException at com.mathworks.help...

environ 3 ans il y a | 1 réponse | 0

0

réponse