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))
|
4333 Solvers
276 Solvers
Sum the 'edge' values of a matrix
232 Solvers
251 Solvers
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!