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: 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: <>
Lines: 9
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: 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?