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
|
Program an exclusive OR operation with logical operators
639 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
334 Solvers
348 Solvers
387 Solvers
302 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!