From: Dimitris Valapetrou on
Hey.
I'm working on a project and i need some help.
How could i find specific values (using the find function) on a matrix ,and get this value's index returned?
thanks a lot guys.
From: Wayne King on
"Dimitris Valapetrou" <diastro(a)email.com> wrote in message <i0sjt0$il6$1(a)fred.mathworks.com>...
> Hey.
> I'm working on a project and i need some help.
> How could i find specific values (using the find function) on a matrix ,and get this value's index returned?
> thanks a lot guys.

Hi Dimitris, have you read the documentation for find()? That is clearly described in the documentation. Also, you should be careful in using find with floating-point numbers. This has also been discussed many times in this newsgroup.

http://matlabwiki.mathworks.com/MATLAB_FAQ#Why_is_0.3-0.2-0.1_not_equal_to_zero_.28or_similar.29.3F


Wayne
 | 
Pages: 1
Prev: if-then statement
Next: Correlation