<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164184</link>
    <title>MATLAB Central Newsreader - I am sure matlab has a function for this...</title>
    <description>Feed for thread: I am sure matlab has a function for this...</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 20 Feb 2008 16:35:09 -0500</pubDate>
      <title>I am sure matlab has a function for this...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164184#416343</link>
      <author>Ross</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
Sorry for the naive question:&lt;br&gt;
&lt;br&gt;
Let V be a vector as follows:&lt;br&gt;
&lt;br&gt;
P = [ 4 0 3 9 7 0]'&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I would like to know how I can get (with the most efficient method)&lt;br&gt;
&lt;br&gt;
f = [ 3 1 2 5 4 1]&lt;br&gt;
&lt;br&gt;
i.e. the position of each element of P in unique(P);&lt;br&gt;
&lt;br&gt;
THANKS!&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 20 Feb 2008 16:44:13 -0500</pubDate>
      <title>Re: I am sure matlab has a function for this...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164184#416346</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
"Ross" &amp;lt;fed.rossi@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:5641f3e2-ce50-49f3-bf58-b76fb1f0f59c@s37g2000prg.googlegroups.com...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Sorry for the naive question:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Let V be a vector as follows:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; P = [ 4 0 3 9 7 0]'&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I would like to know how I can get (with the most efficient method)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; f = [ 3 1 2 5 4 1]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; i.e. the position of each element of P in unique(P);&lt;br&gt;
&lt;br&gt;
Look at the three-output syntax described in the M-file help for UNIQUE.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 20 Feb 2008 16:48:33 -0500</pubDate>
      <title>Re: I am sure matlab has a function for this...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164184#416349</link>
      <author>Ross</author>
      <description>On Feb 20, 10:44 am, "Steven Lord" &amp;lt;sl...@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; "Ross" &amp;lt;fed.ro...@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; news:5641f3e2-ce50-49f3-bf58-b76fb1f0f59c@s37g2000prg.googlegroups.com...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Sorry for the naive question:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Let V be a vector as follows:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; P = [ 4 0 3 9 7 0]'&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I would like to know how I can get (with the most efficient method)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; f = [ 3 1 2 5 4 1]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; i.e. the position of each element of P in unique(P);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Look at the three-output syntax described in the M-file help for UNIQUE.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; sl...@mathworks.com&lt;br&gt;
&lt;br&gt;
steve, thanks!&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
