Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <k9jerd$h6o$1@newscl01ah.mathworks.com> <k9jj0e$c72$1@speranza.aioe.org> <k9jmf4$boc$1@newscl01ah.mathworks.com> <k9jovs$jnl$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1354591448 24597 172.30.248.47 (4 Dec 2012 03:24:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 4 Dec 2012 03:24:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:784107

"Roger Stafford" wrote in message <k9jovs$jnl$1@newscl01ah.mathworks.com>...
>   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