Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: find
Posted:
Mar 3, 2013 7:28 PM


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



