Subject: reshaping question From: Kurt Date: 10 Dec, 2010 06:19:05 Message: 1 of 5 Hello guys, I have a matrix A: A = [ 10 20 30 40 50 60 70 80 90 100 110 120;             1 2 3 4 5 6 7 8 9 11 12 13] I'd like to reshape it as follows: new_A =                    10 20 30 40                    50 60 70 80                   90 100 110 120                     1 2 3 4                     5 6 7 8                     9 11 12 13 Can I get some help with this. all the best, kurtis
 Subject: reshaping question From: Bree Date: 10 Dec, 2010 06:37:05 Message: 2 of 5 Try: new_A = [reshape(A(2,:),[],4);reshape(A(1,:),[],4)] hope it helps, -Bree "Kurt " wrote in message ... > Hello guys, > > I have a matrix A: > > A = [ 10 20 30 40 50 60 70 80 90 100 110 120; > 1 2 3 4 5 6 7 8 9 11 12 13] > > I'd like to reshape it as follows: > > new_A = > 10 20 30 40 > 50 60 70 80 > 90 100 110 120 > 1 2 3 4 > 5 6 7 8 > 9 11 12 13 > > Can I get some help with this. > > all the best, > kurtis
 Subject: reshaping question From: Bruno Luong Date: 10 Dec, 2010 06:38:04 Message: 3 of 5 reshape(A,4,[]).' Bruno
 Subject: reshaping question From: Bree Date: 10 Dec, 2010 06:48:09 Message: 4 of 5 Sorry, it should be: new_A = [reshape(A(1,:),[],4);reshape(A(2,:),[],4)] "Bree " wrote in message ... > Try: > > new_A = [reshape(A(2,:),[],4);reshape(A(1,:),[],4)] > > hope it helps, > -Bree > > "Kurt " wrote in message ... > > Hello guys, > > > > I have a matrix A: > > > > A = [ 10 20 30 40 50 60 70 80 90 100 110 120; > > 1 2 3 4 5 6 7 8 9 11 12 13] > > > > I'd like to reshape it as follows: > > > > new_A = > > 10 20 30 40 > > 50 60 70 80 > > 90 100 110 120 > > 1 2 3 4 > > 5 6 7 8 > > 9 11 12 13 > > > > Can I get some help with this. > > > > all the best, > > kurtis
 Subject: reshaping question From: Kurt Date: 10 Dec, 2010 07:39:04 Message: 5 of 5 thanks

Separated by commas
Ex.: root locus, bode

### What are tags?

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.