Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


dpb
Posts:
9,084
Registered:
6/7/07


Re: Breaking a Vector down to smaller vectors and storing them as variables
Posted:
Feb 8, 2013 1:42 PM


On 2/8/2013 12:31 PM, Christopher wrote: > I have a column of data thats about 8760 rows of information. I want to > split these values into a vector that carries the first 24 then the > other carries the next 24 values and so on. So overall i get 364 vectors > all containing 24 values of the original 8760. HEiLP!Im thinking maybe a > loop equation could satisfy this or mat2cell function. I don't have much > experience with matlab. Thanks ahead of time!
x=reshape(x,24,[]);
doc reshape




