Frage

How to define a criteria for output arguments of a function?
Consider a sample code schematic as shown below: The following function has 2 options, 1st option will deliver 2 output argurmen...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage

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. ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage

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.

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage

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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage

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)

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage

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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage

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 ...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage

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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage

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...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage

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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage

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...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage

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...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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: ...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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.

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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...

mehr als 2 Jahre vor | 1 Antwort | 1

1

Antwort

Frage

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...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage

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 ...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage

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.

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage

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...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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 ...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage

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 ...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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; ...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage

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...

etwa 3 Jahre vor | 0 Antworten | 0

Antworten