Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

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

meer dan een jaar ago | 1 answer | 0

1

answer

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.

meer dan een jaar ago | 1 answer | 0

1

answer

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

meer dan een jaar ago | 1 answer | 0

1

answer

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)

meer dan een jaar ago | 2 answers | 0

2

answers

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

meer dan een jaar ago | 1 answer | 0

1

answer

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

meer dan een jaar ago | 2 answers | 0

2

answers

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

meer dan een jaar ago | 1 answer | 0

1

answer

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

bijna 2 jaar ago | 2 answers | 0

2

answers

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

bijna 2 jaar ago | 1 answer | 0

1

answer

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

bijna 2 jaar ago | 2 answers | 0

2

answers

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

ongeveer 2 jaar ago | 1 answer | 0

1

answer

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

meer dan 2 jaar ago | 1 answer | 0

1

answer

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.

meer dan 2 jaar ago | 1 answer | 0

1

answer

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

meer dan 2 jaar ago | 1 answer | 1

1

answer

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

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 2 jaar ago | 2 answers | 0

2

answers

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

meer dan 2 jaar ago | 2 answers | 0

2

answers

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.

meer dan 2 jaar ago | 0 answers | 0

0

answers

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

meer dan 2 jaar ago | 1 answer | 0

1

answer

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

meer dan 2 jaar ago | 1 answer | 0

1

answer

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

meer dan 2 jaar ago | 2 answers | 0

2

answers

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

meer dan 2 jaar ago | 1 answer | 0

1

answer

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

ongeveer 3 jaar ago | 1 answer | 0

1

answer

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

meer dan 3 jaar ago | 0 answers | 0

0

answers