In an array return the length of longest sequence of nans for each column.
x =
[ 2 3 1 2 5 6;
nan nan 5 nan 6 -9;
5 nan 8 nan 6 5;
8 nan 7 -5 5.8 5;
nan 0 0 nan 5 7;
nan 5 9 nan 7 nan;
nan nan 10 0 nan 6;
nan nan 0 1 nan 9]
y_correct =
[ 4 3 0 2 2 1]
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers71
Suggested Problems
-
Find common elements in matrix rows
2713 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1739 Solvers
-
Sum of first n terms of a harmonic progression
497 Solvers
-
Is this triangle right-angled?
6528 Solvers
-
Replace pattern 0 1 0 and 1 0 1
158 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
First test case is invalid. Please fix it.
I have fixed it.
and the fourth...
It must be OK now!