Today, M-Lint was telling me that "logical indexing is usually faster than FIND".
I didn't knew what logical indexing means. a short google search and i found this out:
if you want to perform the following operation:
you can optimize it just by omitting the find command just like this:
. Matlab is just capable to handle the "logical indexing" which means the indexes of the vector that match the conditions.