Path: news.mathworks.com!not-for-mail
From: "Tim Lee" <lilp0ison@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: even indexed elements of certain vector
Date: Fri, 16 Oct 2009 15:27:18 +0000 (UTC)
Organization: Polytechnic
Lines: 11
Message-ID: <hba3cm$18k$1@fred.mathworks.com>
Reply-To: "Tim Lee" <lilp0ison@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255706838 1300 172.30.248.35 (16 Oct 2009 15:27:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 Oct 2009 15:27:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2044163
Xref: news.mathworks.com comp.soft-sys.matlab:577870


Hey all.
I'm a college student recently started taking classes on matlab. 
I need some help with one of the questions for my lab:

Given a row vector VecR by any length, produce another row vector VecR2 given by the even indexed elements of VecR followed by the odd indexed element of VecR

I know how to create a row vector, but I have no idea how i should seperate the even and odd indexed elements.

Please help.

Thanks in advance