how to find the smallest length filled with numbers

1 vue (au cours des 30 derniers jours)
Dinouk Goonewardena
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

Réponse acceptée

Peng Li
Peng Li le 26 Mar 2020
[~, indCol] = min(sum(~isnan(yourArray), 1));
indCol is the index for the column you need.
  4 commentaires
Dinouk Goonewardena
Dinouk Goonewardena le 26 Mar 2020
how do i combine that with indCol? coz i need it to delete the minimum column length
Dinouk Goonewardena
Dinouk Goonewardena le 26 Mar 2020
nevermind... figured it out thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by