Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1;
assert(isequal(arr(x),y_correct))
y =
1
|
2 | Pass |
x = 3;
y_correct = [1 0; 0 1; 1 0];
assert(isequal(arr(x),y_correct))
y =
1 0
0 1
1 0
|
3 | Pass |
x = 5;
y_correct = [1 0 0; 0 1 0; 0 0 1; 0 1 0; 1 0 0];
assert(isequal(arr(x),y_correct))
y =
1 0 0
0 1 0
0 0 1
0 1 0
1 0 0
|
351 Solvers
Back to basics 17 - white space
245 Solvers
07 - Common functions and indexing 5
314 Solvers
2980 Solvers
Is this triangle right-angled?
2874 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!