Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: repeating array elements
Date: Sat, 26 Jan 2013 10:08:07 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 5
Message-ID: <ke09u6$fvs$1@newscl01ah.mathworks.com>
References: <63207d27-e8c5-49a1-b1ed-f892f49929dd@googlegroups.com> <kduv1o$kpb$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1359194887 16380 172.30.248.45 (26 Jan 2013 10:08:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 26 Jan 2013 10:08:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:787426

% Third method:
[m n] = size(A);
B = A(ceil((1:2*m)/2),ceil((1:2*n)/2))

% Bruno