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))
|
272 Solvers
Create an index-powered vector
352 Solvers
129 Solvers
Height of a right-angled triangle
448 Solvers
78 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!