Cody

Solution 1036319

Submitted on 29 Oct 2016
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
a=100; b=5; c=87; y=change_var(a,10); assert(isequal(a,10));

Error: File: solution.m Line: 2 Column: 6 The expression to the left of the equals sign is not a valid target for an assignment.

2   Fail
a=[]; b=100; c=9; y=change_var(c,0); assert(isequal(c,0));

Error: File: solution.m Line: 2 Column: 6 The expression to the left of the equals sign is not a valid target for an assignment.

3   Fail
a=[]; b=100; c=101; d=99; y=change_var(a,0); assert(isequal(a,0));

Error: File: solution.m Line: 2 Column: 6 The expression to the left of the equals sign is not a valid target for an assignment.

4   Fail
a=[]; c=9; b=100; d=[1 2 3]; y=change_var(b,-8); assert(isequal(b,-8));

Error: File: solution.m Line: 2 Column: 6 The expression to the left of the equals sign is not a valid target for an assignment.

5   Fail
a=100; b=5; c=87; y=change_var(c,-8); assert(isequal(c,-8));

Error: File: solution.m Line: 2 Column: 6 The expression to the left of the equals sign is not a valid target for an assignment.

6   Fail
a=8; c=9; d=10; b=11; y=change_var(b,c); assert(isequal(b,c));

Error: File: solution.m Line: 2 Column: 6 The expression to the left of the equals sign is not a valid target for an assignment.