Error in using find
Afficher commentaires plus anciens
Hello,
I am using find(a==min(a),1) to find the index of minimum element of "a" which is a row vector. I am looking for the first minimum, in fact. However, I am receiving this error:
??? Subscript indices must either be real positive integers or logicals.
I am really confused since I am using the same syntax in another code and it's working perfectly there. But I can't see what might go wrong here.
Any help would be appreciated. Saeed
Réponse acceptée
Plus de réponses (1)
Saied
le 10 Fév 2012
0 votes
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!