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
|
390 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
Check if number exists in vector
4467 Solvers
516 Solvers
Element by element multiplication of two vectors
268 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!