From: "Sadik " <>
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$>
References: <> <ink2lk$gn0$> <>
Reply-To: "Sadik " <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1302174307 7142 (7 Apr 2011 11:05:07 GMT)
NNTP-Posting-Date: Thu, 7 Apr 2011 11:05:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: 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.