Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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.

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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)

más de 1 año hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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.

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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.

más de 2 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 3 años hace | 0 respuestas | 0

0

respuestas