Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 3;
y_correct = [0 1 0;
1 1 1;
0 1 0 ];
assert(isequal(drawCross(x),y_correct))
|
2 | Pass |
x = 5;
y_correct = [0 0 1 0 0;
0 0 1 0 0;
1 1 1 1 1;
0 0 1 0 0;
0 0 1 0 0]
assert(isequal(drawCross(x),y_correct))
y_correct =
0 0 1 0 0
0 0 1 0 0
1 1 1 1 1
0 0 1 0 0
0 0 1 0 0
|
9875 Solvers
594 Solvers
Change the sign of even index entries of the reversed vector
296 Solvers
232 Solvers
Switch matrix to a column vector
260 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!