Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 NaN 0 0
2 NaN 0 0
3 NaN 1 0
4 3 2 1
5 4 3 2
6 5 4 3];
y_correct = 3;
assert(isequal(lowestLevelNaN(x),y_correct))
y =
1
y =
2
y =
3
|
2 | Pass |
x = [1 NaN 0 NaN
2 NaN 0 NaN
3 NaN 1 NaN
4 3 2 NaN
5.7 4 3 NaN
6 5 4 3];
y_correct = 5;
assert(isequal(lowestLevelNaN(x),y_correct))
y =
1
y =
2
y =
3
y =
4
y =
5
|
3 | Pass |
x = [NaN NaN 0 NaN
NaN NaN 0 NaN
NaN NaN 1 NaN
NaN 3 2 -4.5
5.7 4 3 0.0
6 5 4 3];
y_correct = 4;
assert(isequal(lowestLevelNaN(x),y_correct))
y =
1
y =
2
y =
3
y =
4
|
4 | Pass |
x = [NaN];
y_correct = 1;
assert(isequal(lowestLevelNaN(x),y_correct))
y =
1
|
5 | Pass |
x = [NaN NaN NaN NaN
NaN NaN NaN NaN
NaN NaN NaN NaN
NaN 3 NaN NaN
5.7 4 NaN NaN
6 5 NaN NaN
4 0 0 0];
y_correct = 6;
assert(isequal(lowestLevelNaN(x),y_correct))
y =
1
y =
2
y =
3
y =
4
y =
5
y =
6
|
6 | Pass |
x = [1 NaN
1 NaN
1 NaN
1 NaN
5.7 NaN
6 NaN
-1.0 NaN
4 NaN
4 NaN
4 NaN
4 NaN];
y_correct = 11;
assert(isequal(lowestLevelNaN(x),y_correct))
y =
1
y =
2
y =
3
y =
4
y =
5
y =
6
y =
7
y =
8
y =
9
y =
10
y =
11
|
1398 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Back to basics 12 - Input Arguments
525 Solvers
367 Solvers
331 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!