Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Upsampling by duplicating existing data?
Date: Thu, 7 Apr 2011 11:05:07 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <ink5p3$6v6$1@fred.mathworks.com>
References: <N-GdnSuvcZgjGgDQnZ2dnUVZ7sGdnZ2d@eclipse.net.uk> <ink2lk$gn0$1@fred.mathworks.com> <HYadnc0PAOr8DADQnZ2dnUVZ7tWdnZ2d@eclipse.net.uk>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1302174307 7142 172.30.248.37 (7 Apr 2011 11:05:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Apr 2011 11:05:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:720576

Actually it is nothing fancy. repmat produced a matrix, but the desired output is a vector so we are vectorizing the matrix "wanted". When A is a matrix, A(:) is a vector with A's columns put one after the other.

Best.