From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: find all numbers in a vector
Date: Tue, 4 Dec 2012 03:24:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 6
Message-ID: <k9jqco$o0l$>
References: <k9jerd$h6o$> <k9jj0e$c72$> <k9jmf4$boc$> <k9jovs$jnl$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1354591448 24597 (4 Dec 2012 03:24:08 GMT)
NNTP-Posting-Date: Tue, 4 Dec 2012 03:24:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:784107

"Roger Stafford" wrote in message <k9jovs$jnl$>...
>   You shouldn't give up so quickly, Petra.  The answer you gave was correct - for the positions in 'a'.
- - - - - - -
  Oops!  I was hasty in reading your answer.  As Nassar indicates, the 8 is incorrect.  However, it is convenient to use 'ismember' if you want to find both the like numbers and their position.

Roger Stafford