Splitting a numerical matrix by column values in MATLAB
I have a matrix in MATLAB of 50572x4 doubles. The last column has
increasing values from 7.3025e+05 to 7.3139e+05. I would like to split
this matrix into a number of matrices, each that cover intervals of 30
days. If I'm not being clear enough..the difference between the first
element in the 4th column and the last element in the 4th column is
7.3139e5 - 7.3025e5 = 1.1376e3, or 1137.6. I would like to partition this
into 30 day segments, and get a bunch of matrices that have a range of 30
for the 4th columns. I'm not quite sure how to go about doing this...I'm
quite new to MATLAB, but a dataset I'm working with has only this
representation, necessitating such an action.
Thanks in advance!
No comments:
Post a Comment