フィルターのクリア

how to find the smallest length filled with numbers

1 回表示 (過去 30 日間)
Dinouk Goonewardena
Dinouk Goonewardena 2020 年 3 月 26 日
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
Dinouk Goonewardena 2020 年 3 月 26 日
how do i combine that with indCol? coz i need it to delete the minimum column length
Dinouk Goonewardena
Dinouk Goonewardena 2020 年 3 月 26 日
nevermind... figured it out thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by