Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: permute/reshape
Date: Tue, 17 May 2011 02:46:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 4
Message-ID: <iqsnhc$9bt$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>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1305600364 9597 172.30.248.48 (17 May 2011 02:46:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 May 2011 02:46:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1423790
Xref: news.mathworks.com comp.soft-sys.matlab:727158

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.