Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <brunoluong@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Extracting data
Date: Tue, 30 Dec 2008 08:03:03 +0000 (UTC)
Organization: UMR 7159 LOCEAN
Lines: 11
Message-ID: <gjckjn$bh4$1@fred.mathworks.com>
References: <gjcds1$8j7$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <brunoluong@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1230624183 11812 172.30.248.37 (30 Dec 2008 08:03:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 30 Dec 2008 08:03:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1184112
Xref: news.mathworks.com comp.soft-sys.matlab:509187


"yingmu huadao" <yingmusg@yahoo.com.sg> wrote in message <gjcds1$8j7$1@fred.mathworks.com>...
> Hi all,
> 
> I have a variable, a = <1 x 102300 double>. How do I go about extracting data from every 4 numbers and store the data in another variable, for eg, the 1,5,9,13 (position) data, store in variable b.
> Thanks in advance.
> 
> Yingmu

b=a(1:4:end)

Bruno