Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Interleave every 2 values
Date: Thu, 19 Feb 2009 01:42:01 +0000 (UTC)
Organization: York University
Lines: 10
Message-ID: <gnidd9$232$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1235007721 2146 172.30.248.38 (19 Feb 2009 01:42:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Feb 2009 01:42:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477699
Xref: news.mathworks.com comp.soft-sys.matlab:519306


Hello,

s=[linspace(0,3,22)];

I would like to interleave every 2 numbers: 
[s(1),s(3),s(2),s(4)...s(22)]

Any suggestion

Sylvie