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))
|
Back to basics 22 - Rotate a matrix
763 Solvers
Get the length of a given vector
3566 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Write a function man that takes a row vector v and returns a matrix H as follows..
439 Solvers
Create a vector with n repeated values of a number x (★★)
60 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!