Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [12 4 7; 5 1 4];
y_correct = [7 4 12; 4 1 5];
assert(isequal(your_fcn_name(x),y_correct))
f =
12
x =
7 4 7
5 1 4
x =
7 4 12
5 1 4
l =
5
x =
7 4 12
4 1 4
x =
7 4 12
4 1 5
y =
7 4 12
4 1 5
|
2 | Pass |
x = [12 4 7 8; 5 1 4 8];
y_correct = [8 4 7 12; 8 1 4 5];
assert(isequal(your_fcn_name(x),y_correct))
f =
12
x =
8 4 7 8
5 1 4 8
x =
8 4 7 12
5 1 4 8
l =
5
x =
8 4 7 12
8 1 4 8
x =
8 4 7 12
8 1 4 5
y =
8 4 7 12
8 1 4 5
|
1398 Solvers
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
579 Solvers
366 Solvers
Matlab Basics - Set unwanted parts of a vector to zero
197 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!