Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 3;
y_correct = [0 69 0;69 0 69;0 69 0];
assert(isequal(ChecK69(x),y_correct))
|
2 | Pass |
%%
x = 4;
y_correct = [0 69 0 69;
69 0 69 0;
0 69 0 69;
69 0 69 0];
assert(isequal(ChecK69(x),y_correct))
|
3 | Pass |
%%
x = 5;
y_correct =[0 69 0 69 0;
69 0 69 0 69;
0 69 0 69 0;
69 0 69 0 69;
0 69 0 69 0];
assert(isequal(ChecK69(x),y_correct))
|
4 | Pass |
%%
x = 6;
y_correct =[0 69 0 69 0 69;
69 0 69 0 69 0;
0 69 0 69 0 69;
69 0 69 0 69 0;
0 69 0 69 0 69;
69 0 69 0 69 0];
assert(isequal(ChecK69(x),y_correct))
|
5 | Pass |
%%
x = 8;
y_correct =[0 69 0 69 0 69 0 69;
69 0 69 0 69 0 69 0;
0 69 0 69 0 69 0 69;
69 0 69 0 69 0 69 0;
0 69 0 69 0 69 0 69;
69 0 69 0 69 0 69 0;
0 69 0 69 0 69 0 69;
69 0 69 0 69 0 69 0];
assert(isequal(ChecK69(x),y_correct))
|
19329 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
277 Solvers
Create a square matrix of multiples
383 Solvers
965 Solvers
525 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!