Path: news.mathworks.com!not-for-mail
From: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matrix question
Date: Wed, 6 Feb 2008 18:53:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <focvmg$7p$1@fred.mathworks.com>
References: <focv5i$li5$1@fred.mathworks.com>
Reply-To: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202323984 249 172.30.248.38 (6 Feb 2008 18:53:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 6 Feb 2008 18:53:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:449712


"Matthew Allen" <allenmatthew@yahoo.com> wrote in message <focv5i$li5
$1@fred.mathworks.com>...
> I have a 1x144 Matrix and I was wondering if there is a way
> to change it into a 12x12 matrix where the first 12 elements
> of the 1x144 Matrix is the first row of the 12x12
---------
x = rand(1,144);
y = reshape(x,12,[]).';