Looking for a way faster than find?
Mostra commenti meno recenti
Dear All,
I have an array A. I want to find out the index of those "1" entries in the array A.
For example, A = [1 2 5 1 3 2 8 10 1]. I want to find out the indecis of those "1" in A.
I used logical indexing to find the location but cannot get the indecis.
a = A == 1;
a = [1 0 0 1 0 0 0 0 1].
How can I find the indecis of nonzero in a?
Thanks.
Benson
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Special Characters in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!