Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!news-zh.switch.ch!switch.ch!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.eclipse.net.uk!news.eclipse.net.uk.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 07 Apr 2011 04:45:34 -0500
Date: Thu, 07 Apr 2011 10:45:57 +0100
From: <HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Upsampling by duplicating existing data?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <N-GdnSuvcZgjGgDQnZ2dnUVZ7sGdnZ2d@eclipse.net.uk>
Lines: 9
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 178.78.75.150
X-Trace: sv3-XgkAstLinH+IOKHfykSD75NfpqrG3ald2aARdaSfwc/+1jvcOd5asc7HdF3TJwtoKj66PuSb6yiH7pM!oqOxjLy3hUz9fbKFy0QoPBuWWEbB3JnkEMGXe8N5g0KsKlzNc5vB0mMOyq141rVrb4DU02vtuJxX!qfNvuSOmDdX3jfpLjUpp
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1403
Xref: news.mathworks.com comp.soft-sys.matlab:720552

I've got a vector that I'd like to duplicate each point, upsample 
doesn't handle this as it adds zeros. Can anybody point me to the 
quickest way to achieve this?

Initial: [1;2;3]
Wanted: [1;1;2;2;3;3]

If I use upsample, I obviously get [1;0;2;0;3;0] - I can go through this 
and copy each element, but it seems inefficient?