已回答
How do you plot data bi-monthly for the course of a year?
You may use the function datetime to set the lower and upper dates of each bi-monthly period. Then using find to selectively cho...

5 years 前 | 0

| 已接受

已回答
How can I write code that multiplies one transition matrices by the different products of two matrixes?
You can use the power ^ operator: g = group1_transition*group1_distribution*(group1_transition^4);

5 years 前 | 0

已回答
How to calculate the peak areas of every single peak from the mass spectrum?
The function findpeaks can find the peak values and locations. data = importdata('Example.txt'); plot(data); [pks,loc] = fin...

5 years 前 | 2

已回答
How can I compare the values of different columns of the same matrix
Basically, the function input with the argument 's' returns a char array (string), you need to convert it into vector of numbers...

5 years 前 | 0

| 已接受

已回答
Write a file starting in column 7.
If your data is in csv format, you can use the command csvwrite with row and col parameters as follows: row = 0; col = 6; % ro...

5 years 前 | 0

| 已接受

已回答
How to plot matrix of ones and zeros as a chessboard?
use the function pcolor

5 years 前 | 0

已回答
How to add a column to an existing file?
I belelive you are trying to add a column of A to the file so your new file will be like this: %--Existing file -- -- A -- 4 ...

5 years 前 | 2

| 已接受

已回答
Create a single for loop for multiple conditions
I suggest you use switch statement like this: Boat_Speed=40; % set the following variable based on the current water con...

6 years 前 | 0

已回答
Undefined operator '-' for input arguments of type 'cell'.
I would suggest that you make sure that the both sigT_C{1,1} and recapT_C{1,1} are matrices. You can try this code and check if ...

6 years 前 | 0

已回答
how can I find the rows with l non zero elements in a matrix? (vital)
You can do it this way: q = r > 0; find(sum(q,2)==1) you can replace the 1 with any count you want of the number of no...

6 years 前 | 5