how to find the smallest length filled with numbers
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dinouk Goonewardena
le 26 Mar 2020
Commenté : Dinouk Goonewardena
le 26 Mar 2020
I need to find the column with the least amount of digits e.g 5 rows in the case below
0 commentaires
Réponse acceptée
Peng Li
le 26 Mar 2020
[~, indCol] = min(sum(~isnan(yourArray), 1));
indCol is the index for the column you need.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!