Search array for largest value of the desired format
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have an array, data, I need to search through it to find 1000 , 2000 , 3000 , ... n
As many as exist in the array. 1000 will always exist and 32000 is the highest.
output should be 1 if just 1000, 2 if 1000 and 2000, 3 if 1000 2000 and 3000 exist in the array, data.
I can figure it out with a while and nested for loop but its too inefficient for what i am attempting to do.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!