Cody

Solution 1764370

Submitted on 27 Mar 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
[x,y] = swap_vars(5,10); assert(isequal(x,10)); assert(isequal(y,5));

Error in solution Line: 2 Column: 15 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
[x,y] = swap_vars('hello','bye'); assert(isequal(x,'bye')); assert(isequal(y,'hello'));

Error in solution Line: 2 Column: 15 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
[x,y] = swap_vars(5,'hello'); assert(isequal(x,'hello')); assert(isequal(y,5));

Error in solution Line: 2 Column: 15 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.