<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263326</link>
    <title>MATLAB Central Newsreader - even indexed elements of certain vector</title>
    <description>Feed for thread: even indexed elements of certain vector</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 16 Oct 2009 15:27:18 -0400</pubDate>
      <title>even indexed elements of certain vector</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263326#687589</link>
      <author>Tim Lee</author>
      <description>Hey all.&lt;br&gt;
I'm a college student recently started taking classes on matlab. &lt;br&gt;
I need some help with one of the questions for my lab:&lt;br&gt;
&lt;br&gt;
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&lt;br&gt;
&lt;br&gt;
I know how to create a row vector, but I have no idea how i should seperate the even and odd indexed elements.&lt;br&gt;
&lt;br&gt;
Please help.&lt;br&gt;
&lt;br&gt;
Thanks in advance</description>
    </item>
    <item>
      <pubDate>Fri, 16 Oct 2009 15:33:19 -0400</pubDate>
      <title>Re: even indexed elements of certain vector</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263326#687591</link>
      <author>tpl@eng.cam.ac.uk (Tim Love)</author>
      <description>&quot;Tim Lee&quot; &amp;lt;lilp0ison@hotmail.com&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt;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&lt;br&gt;
&lt;br&gt;
&amp;gt;I know how to create a row vector, but I have no idea how i should seperate the even and odd indexed elements.&lt;br&gt;
&lt;br&gt;
You could try it using &quot;for&quot; loops couldn't you? Might not be the fastest way, but it's worth a try.</description>
    </item>
  </channel>
</rss>

