Cody

Problem 42524. Xor of matrix

Solution 1979298

Submitted on 16 Oct 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
a=[1 2 5]; b=[6 4 3]; y_correct = [1 2 3 4 5 6]; assert(isequal(array_xor(a,b),y_correct))

y = 1 2 3 4 5 6

Undefined function 'interesect' for input arguments of type 'double'. Error in array_xor (line 3) interesect(a,b) Error in Test1 (line 4) assert(isequal(array_xor(a,b),y_correct))

2   Fail
a=[1 2 5 4]; b=[8 6 9 2]; y_correct = [1 4 5 6 8 9]; assert(isequal(array_xor(a,b),y_correct))

y = 1 2 4 5 6 8 9

Undefined function 'interesect' for input arguments of type 'double'. Error in array_xor (line 3) interesect(a,b) Error in Test2 (line 4) assert(isequal(array_xor(a,b),y_correct))

Suggested Problems

More from this Author18