Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
[x,y] = swap_vars(5,10);
assert(isequal(x,10));
assert(isequal(y,5));
y =
5
x =
10
|
2 | Pass |
[x,y] = swap_vars('hello','bye');
assert(isequal(x,'bye'));
assert(isequal(y,'hello'));
y =
'hello'
x =
'bye'
|
3 | Pass |
[x,y] = swap_vars(5,'hello');
assert(isequal(x,'hello'));
assert(isequal(y,5));
y =
5
x =
'hello'
|
Arrange vector in ascending order
541 Solvers
279 Solvers
324 Solvers
07 - Common functions and indexing 4
259 Solvers
236 Solvers