Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matix maths
Date: Thu, 15 Nov 2012 22:59:16 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 5
Message-ID: <k83s44$5n6$1@newscl01ah.mathworks.com>
References: <k83i5d$rqg$1@newscl01ah.mathworks.com> <k83ofn$mpo$1@newscl01ah.mathworks.com> <k83rhh$3p9$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
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 1353020356 5862 172.30.248.48 (15 Nov 2012 22:59:16 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 15 Nov 2012 22:59:16 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:782886

[m n]=size(A);
K=hankel(1:m,m+(0:n-1))
accumarray(K(:),A(:))

% Bruno