how to find the smallest length filled with numbers
1 view (last 30 days)
Show older comments
Dinouk Goonewardena
on 26 Mar 2020
Commented: Dinouk Goonewardena
on 26 Mar 2020
I need to find the column with the least amount of digits e.g 5 rows in the case below
0 Comments
Accepted Answer
Peng Li
on 26 Mar 2020
[~, indCol] = min(sum(~isnan(yourArray), 1));
indCol is the index for the column you need.
4 Comments
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!