MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Splitting a long vector into matrix of variable co... 

Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 13 Feb, 2011 10:30:06 Message: 1 of 15 
Hello. I wish to split a very long vector into a single matrix where the rows consist of values between a certain interval. This interval is defined usinga for loop. I give a simplified example but I'm unsure of the coding. I think the problem is in the last 2 lines where I introduce the H8j). 
Subject: Splitting a long vector into matrix of variable columns From: Jeff Date: 13 Feb, 2011 11:09:03 Message: 2 of 15 
"Mark" wrote in message <ij8bre$9jk$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Franck Dernoncourt Date: 13 Feb, 2011 11:18:04 Message: 3 of 15 
"Mark" wrote in message <ij8bre$9jk$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 13 Feb, 2011 11:24:04 Message: 4 of 15 
"Jeff" wrote in message <ij8e4f$4qk$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Franck Dernoncourt Date: 13 Feb, 2011 11:39:03 Message: 5 of 15 
"Mark" wrote in message <ij8f0k$p1$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 13 Feb, 2011 12:33:03 Message: 6 of 15 
"Franck Dernoncourt" <franck.dernoncourt@gmail.com> wrote in message <ij8fsn$q1r$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 13 Feb, 2011 12:34:04 Message: 7 of 15 
"Franck Dernoncourt" <franck.dernoncourt@gmail.com> wrote in message <ij8fsn$q1r$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Franck Dernoncourt Date: 13 Feb, 2011 12:58:03 Message: 8 of 15 
Filter then reshape. 
Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 13 Feb, 2011 13:32:03 Message: 9 of 15 
"Franck Dernoncourt" <franck.dernoncourt@gmail.com> wrote in message <ij8kgr$ka0$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Bruno Luong Date: 13 Feb, 2011 13:38:03 Message: 10 of 15 
"Mark" wrote in message <ij8mgj$qu0$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Franck Dernoncourt Date: 13 Feb, 2011 13:51:03 Message: 11 of 15 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <ij8mrr$jg0$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 3 Mar, 2011 17:27:21 Message: 12 of 15 
"Franck Dernoncourt" <franck.dernoncourt@gmail.com> wrote in message <ij8nk7$8de$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Bruno Luong Date: 3 Mar, 2011 18:54:05 Message: 13 of 15 
"Mark" wrote in message <ikoj1p$90k$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 3 Mar, 2011 19:09:07 Message: 14 of 15 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <ikoo4d$941$1@fred.mathworks.com>... 
Subject: Splitting a long vector into matrix of variable columns From: Mark Date: 21 Mar, 2011 11:57:04 Message: 15 of 15 
"Mark" wrote in message <ikop0j$70a$1@fred.mathworks.com>... 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.