Azzera filtri
Azzera filtri

how to find the smallest length filled with numbers

1 visualizzazione (ultimi 30 giorni)
I need to find the column with the least amount of digits e.g 5 rows in the case below

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays 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!

Translated by