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
Replies: 2   Last Post: Mar 3, 2013 7:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 5,646
Registered: 2/7/05
Re: find
Posted: Mar 3, 2013 7:28 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 3/3/2013 5:10 PM, a h wrote:
> Hey yall
>
> So i have vektor, and i want to find the position in the vektor where
>the value is 50.2, but matlab keeps telling me
>

>>> find(x,50.2)
> ??? Error using ==> find
> Second argument must be a positive scalar integer.
>
>
> what to do??,
>


http://www.mathworks.com/help/matlab/ref/find.html

"
ind = find(X, k) or ind = find(X, k, 'first') returns at most the first
k indices corresponding to the nonzero entries of X. k must be
a positive integer, but it can be of any numeric data type."


may be you need find(x==50.2) instead





Date Subject Author
3/3/13
Read Re: find
Nasser Abbasi
3/3/13
Read Re: find
Derek Goring

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.