Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: find all numbers in a vector
Replies: 4   Last Post: Dec 3, 2012 10:24 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Roger Stafford

Posts: 5,868
Registered: 12/7/04
Re: find all numbers in a vector
Posted: Dec 3, 2012 10:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.