Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: cushion the matrix
Date: Fri, 4 Sep 2009 04:04:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <h7q3jh$ir0$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1252037041 19296 172.30.248.38 (4 Sep 2009 04:04:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 4 Sep 2009 04:04:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1875128
Xref: news.mathworks.com comp.soft-sys.matlab:568272


Hi,
I want to build a matrix from
a = 
1 2 3 
4 5 6 
7 8 9

to 

b= 
0 0 0 0 
0 4 5 6
0 7 8 9

what is the most efficient way to do this
thanks
Diego