Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: permute/reshape
Date: Tue, 17 May 2011 03:14:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <iqsp5s$dvg$1@newscl01ah.mathworks.com>
References: <iqsi2v$o52$1@newscl01ah.mathworks.com> <0a67c9a0-2ac5-4985-affc-33fd3a684e72@x6g2000yqj.googlegroups.com> <cbcffc55-943b-4094-8b23-fc7fe1777212@s11g2000yqj.googlegroups.com> <iqsmdn$6ci$1@newscl01ah.mathworks.com> <iqsnhc$9bt$1@newscl01ah.mathworks.com> <iqsol0$cff$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1305602044 14320 172.30.248.38 (17 May 2011 03:14:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 May 2011 03:14:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1423790
Xref: news.mathworks.com comp.soft-sys.matlab:727162

"Roger Stafford" wrote in message <iqsol0$cff$1@newscl01ah.mathworks.com>...
> "Jane" wrote in message <iqsnhc$9bt$1@newscl01ah.mathworks.com>...
> > A=[1 2 3 4 5 6 7 8 9 ; 10 11 12 13 14 15 16 17 18 ; 19 20 21 22 23 24 25 26 27];
> > B=[1 4 7 ; 10 13 16 ; 19 22 25 ; 2 5 8 ; 11 14 17 ; 20 23 26; 3 6 9; 12 15 18; 21 24 27]';
> > 
> > Put B numbers back in the same order as A. Hope this makes sense.
> - - - - - - - - - -
>  A2 = reshape(reshape(B,9,3).',9,3).';
> 
> Roger Stafford

Thanks. I will try to apply this to my data and report back.