Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
[x,y] = swap_vars(5,10);
assert(isequal(x,10));
assert(isequal(y,5));
|
2 | Fail |
[x,y] = swap_vars('hello','bye');
assert(isequal(x,'bye'));
assert(isequal(y,'hello'));
|
3 | Fail |
[x,y] = swap_vars(5,'hello');
assert(isequal(x,'hello'));
assert(isequal(y,5));
|
1836 Solvers
2261 Solvers
Determine Whether an array is empty
646 Solvers
302 Solvers
242 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!