how to find the smallest length filled with numbers

1 次查看(过去 30 天)
I need to find the column with the least amount of digits e.g 5 rows in the case below

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by