The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 6,677
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??,

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
Read Re: find
Nasser Abbasi
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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.