提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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.

2 years 前 | 1 个回答 | 0

1

个回答

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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)

2 years 前 | 2 个回答 | 0

2

个回答

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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

2 years 前 | 2 个回答 | 0

2

个回答

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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

2 years 前 | 2 个回答 | 0

2

个回答

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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

2 years 前 | 2 个回答 | 0

2

个回答

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

提问


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.

2 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 1 个回答 | 1

1

个回答

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 2 个回答 | 0

2

个回答

提问


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

3 years 前 | 2 个回答 | 0

2

个回答

提问


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.

3 years 前 | 0 个回答 | 0

0

个回答

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 2 个回答 | 0

2

个回答

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 0 个回答 | 0

0

个回答