提问


Replace matched values with a cell array keeping unmatched values unchanged
I have a string let's say A = '[0, 40, 50, 60, 80, 100, 140, 160, 200, 300]'; and another char array,...

5 years 前 | 1 个回答 | 0

1

个回答

已回答
How to fix the values of different histograms 2D to have the same color reference?
One way to do this is to use "colormapeditor". Type the following in command window : colormapeditor In the dialog box, you ca...

5 years 前 | 0

已回答
How to find NaN value then delete whole row using for loop
Instead of finding 0 column wise, you can find NaN using 'isnan' function. Try this : rind=find(isnan(:,col)); everything(rind...

5 years 前 | 1

已回答
Understanding indexing and the colon operator
When you use 'end' for indexing, it means that you want to use 'last' index of the array. So, for e.g. if A is a 3x4 matrix and ...

5 years 前 | 0

已回答
How to prevent .xlsread to turn string data to NaN value
MATLAB doesn't give the option to store 'string' and 'double' in an double array. You can read the excel file and store it in a ...

5 years 前 | 1

| 已接受

已回答
How to find index in a single array?
Try this : A=[3, 4, 6, 9, 12, 34, 56, 99, 105, 190]'; B=[4, 12, 34, 56]' ; D=[1:200;1:200;1:200;1:200]'; [val,ind]=intersect...

5 years 前 | 1

已回答
FOR loop taking every row from a matrix
Let's call input [3x159] matrix be Xin, and the final output [3x159] matrix be Xout. Here's is the code I would try : Xout = ze...

5 years 前 | 0

| 已接受

已回答
Cut Off subplots in figure window
Try this: x = rand(10,10); y = x; z = x; azleft = 0; azright = 0; elleft = 90; elrright = 90; topologie = figure; link...

5 years 前 | 0

| 已接受

已回答
Write a scilab code to fit a straight line for the following data.
Use 'polyfit' to fit data to required polynomial degree. take a look : help polyfit I hope this helps.

5 years 前 | 0

已回答
legend with specific colors
Right now you are plotting one dataset of 'Lon' and 'Lat' at a time and this will give you a plot with number of datasets equal ...

5 years 前 | 1

| 已接受

已回答
How do I save my data from each loop iteration into a single matrix?
save(sprintf('rft%04d.mat',k),'rf_data','tstart') There should be " i " in place "k" in the above line and you will be able to ...

6 years 前 | 0

已回答
FFT and plot amplitude spectrum
You might wanna use "logarithmic plot" instead of simple plot. So last line would be loglog(f,m);

6 years 前 | 0

| 已接受

已回答
How do I use simulink for a function then import it into a mat file
If you want output of 1x4 matrix, which will tell you the polynomial value of each corresponding element of X matrix, then you c...

6 years 前 | 0

提问


Unable to access Matlab online, even though MATALB standard individual license is installed on pc.
Hello there, I am trying to use MATLAB online, I checked the eligibility for MatLab online and it showed bunch of license type ...

6 years 前 | 1 个回答 | 0

1

个回答

提问


Count number of times Handle executed
I was wondering if there is a way by which we can count the number of times a Handle has been called? I am trying to count numb...

7 years 前 | 1 个回答 | 0

1

个回答