Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y = 2;
y_correct = 0;
assert(isequal(inorout(x,y),y_correct))
ans =
logical
1
y =
0
|
2 | Pass |
x = 0;
y = 0;
y_correct = 1;
assert(isequal(inorout(x,y),y_correct))
y =
1
|
2197 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Flip the vector from right to left
2666 Solvers
156 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!