Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 5;
y_correct = [1 0 1 0 1];
assert(isequal(alternating10(n),y_correct))
|
2 | Pass |
n = 8;
y_correct = [1 0 1 0 1 0 1 0];
assert(isequal(alternating10(n),y_correct))
|
900 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Create a Multiplication table matrix...
283 Solvers
224 Solvers
193 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!