Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: find all numbers in a vector

$
0
0
"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

Viewing all articles
Browse latest Browse all 19628

Trending Articles