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: how to split a matrix
Replies: 1   Last Post: Mar 7, 2013 2:24 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
James Tursa

Posts: 2,071
Registered: 8/5/09
Re: how to split a matrix
Posted: Mar 7, 2013 2:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Timothy Koh" <timothy_koh87@hotmail.com> wrote in message <kh9eo1$fmj$1@newscl01ah.mathworks.com>...
> Hi
>
> I have a <39014400x1 double> matrix. How do i go about splitting it and merge it back together?
>
> Help is greatly appreciated
>
> Regards
> Timothy


How do you want it split? E.g.,

a = rand(39014400,1);
b = a(1:1000000); % split first part
c = a(1000001:end); % split second part
d = [b;c]; % join the pieces back together

James Tursa



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.