Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1;
assert(isequal(Hen(x),y_correct))
y =
1
|
2 | Pass |
x = 2;
y_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1+1;
assert(isequal(Hen(x),y_correct))
y =
2
|
Flip the main diagonal of a matrix
506 Solvers
Arrange vector in ascending order
624 Solvers
254 Solvers
241 Solvers
228 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!