Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Breaking a Vector down to smaller vectors and storing them as
variables

Replies: 4   Last Post: Feb 8, 2013 5:15 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
dpb

Posts: 8,152
Registered: 6/7/07
Re: Breaking a Vector down to smaller vectors and storing them as
variables

Posted: Feb 8, 2013 1:42 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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

--




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.