Cody

Solution 1881359

Submitted on 22 Jul 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
aIn = 10; bIn = 20; aOut_correct = 20; bOut_correct = 10; [aOut,bOut] = swapit(aIn,bIn); assert(isequal(aOut, aOut_correct)) assert(isequal(bOut, bOut_correct))

Undefined function or variable 'a'. Error in swapit (line 2) aIn = a Error in Test1 (line 5) [aOut,bOut] = swapit(aIn,bIn);

2   Fail
aIn = 0; bIn = -3; aOut_correct = -3; bOut_correct = 0; [aOut,bOut] = swapit(aIn,bIn); assert(isequal(aOut, aOut_correct)) assert(isequal(bOut, bOut_correct))

Undefined function or variable 'a'. Error in swapit (line 2) aIn = a Error in Test2 (line 5) [aOut,bOut] = swapit(aIn,bIn);

Suggested Problems

More from this Author1