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))
|
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))
|
Find the sum of the elements in the "second" diagonal
994 Solvers
Output any real number that is neither positive nor negative
316 Solvers
Append two matrix as shown below example
181 Solvers
Matlab Basics - Switching Assignments
171 Solvers
1172 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!