Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 5;
y_correct = [1 -1 1 -1 1];
assert(isequal(alternating1_1(n),y_correct))
|
2 | Pass |
n = 8;
y_correct = [1 -1 1 -1 1 -1 1 -1];
assert(isequal(alternating1_1(n),y_correct))
|
1882 Solvers
Back to basics 23 - Triangular matrix
634 Solvers
208 Solvers
159 Solvers
62 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!