Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 1 1;
2 2 2;
3 3 3;
4 4 4;
5 5 5;
6 6 6];
y_correct = [2 2 2;
4 4 4;
6 6 6];
assert(isequal(deleteThreeRows(x),y_correct))
y =
2 2 2
4 4 4
6 6 6
|
2 | Pass |
x = (1:5)';
y_correct = [2;4];
assert(isequal(deleteThreeRows(x),y_correct))
y =
2
4
|
3 | Pass |
x = ones(8);
y_correct = ones(5, 8);
assert(isequal(deleteThreeRows(x),y_correct))
y =
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
|
Determine whether a vector is monotonically increasing
11915 Solvers
284 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
367 Solvers
Convert from Fahrenheit to Celsius
7127 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!