how to find the smallest length filled with numbers

1 visualización (últimos 30 días)
Dinouk Goonewardena
Dinouk Goonewardena el 26 de Mzo. de 2020
Comentada: Dinouk Goonewardena el 26 de Mzo. de 2020
I need to find the column with the least amount of digits e.g 5 rows in the case below

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by