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 10:12:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <ink2lk$gn0$1@fred.mathworks.com>
References: <N-GdnSuvcZgjGgDQnZ2dnUVZ7sGdnZ2d@eclipse.net.uk>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1302171124 17120 172.30.248.45 (7 Apr 2011 10:12:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Apr 2011 10:12:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:720559

Hi Jamie,

initial = [1;2;3];
upsamplingFactor = 2;

wanted = repmat(initial',[upsamplingFactor 1]);
wanted = wanted(:);

Best.