Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
[x,y] = swap_vars(5,10);
assert(isequal(x,10));
assert(isequal(y,5));
|
2 | Pass |
[x,y] = swap_vars('hello','bye');
assert(isequal(x,'bye'));
assert(isequal(y,'hello'));
|
3 | Pass |
[x,y] = swap_vars(5,'hello');
assert(isequal(x,'hello'));
assert(isequal(y,5));
|
746 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
484 Solvers
413 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
297 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!