Cody

Solution 1667508

Submitted on 7 Nov 2018
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 = [0 1; 1 0; 2 3; 4 5;]; y_correct = 2; assert(isequal(whosTheOutcast(x),y_correct))

Error using mod Not enough input arguments. Error in whosTheOutcast (line 3) find(ans ~= mod(ans)); Error in Test1 (line 6) assert(isequal(whosTheOutcast(x),y_correct))

2   Fail
x = [2 4; 6 8; 2 3; 7 9;]; y_correct = 3; assert(isequal(whosTheOutcast(x),y_correct))

Error using mod Not enough input arguments. Error in whosTheOutcast (line 3) find(ans ~= mod(ans)); Error in Test2 (line 6) assert(isequal(whosTheOutcast(x),y_correct))

3   Fail
x = [1 3; 0 0; 2 2; 4 4;]; y_correct = 1; assert(isequal(whosTheOutcast(x),y_correct))

Error using mod Not enough input arguments. Error in whosTheOutcast (line 3) find(ans ~= mod(ans)); Error in Test3 (line 6) assert(isequal(whosTheOutcast(x),y_correct))

Suggested Problems

More from this Author43