The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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,326
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" <> wrote in message <kh9eo1$fmj$>...
> 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.