Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3;4 5 6];
y_correct = [1;4];
assert(isequal(min_per_row(x),y_correct))
l =
2
u =
1
u =
1 4
y =
1
4
|
2 | Pass |
x = [7.2 -2.5 5.1;4.2 -9.8 3.6];
y_correct = [-2.5;-9.8];
assert(isequal(min_per_row(x),y_correct))
l =
2
u =
-2.5000
u =
-2.5000 -9.8000
y =
-2.5000
-9.8000
|
3 | Pass |
x = [pi exp(1) pi/2;3 pi 4];
y_correct = [pi/2;3];
assert(isequal(min_per_row(x),y_correct))
l =
2
u =
1.5708
u =
1.5708 3.0000
y =
1.5708
3.0000
|
3375 Solvers
401 Solvers
Given a 4x4 matrix, swap the two middle columns
516 Solvers
321 Solvers
5465 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!