Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
[x,y] = swap_vars(5,10);
assert(isequal(x,10));
assert(isequal(y,5));
a =
5
b =
10
y =
5
x =
10
|
2 | Pass |
[x,y] = swap_vars('hello','bye');
assert(isequal(x,'bye'));
assert(isequal(y,'hello'));
a =
'hello'
b =
'bye'
y =
'hello'
x =
'bye'
|
3 | Pass |
[x,y] = swap_vars(5,'hello');
assert(isequal(x,'hello'));
assert(isequal(y,5));
a =
5
b =
'hello'
y =
5
x =
'hello'
|
Project Euler: Problem 7, Nth prime
521 Solvers
753 Solvers
272 Solvers
Matlab Basics II - Determine if an array has a 3rd dimension
107 Solvers
209 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!