Cody

Solution 1886223

Submitted on 28 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
A = [1 0 0 0 0;... 0 1 0 0 0;... 0 0 1 0 0;... 0 0 0 1 0;... 0 0 0 0 1]; B = [0 1 0 0 0;... 0 0 1 0 0;... 0 0 0 1 0;... 0 0 0 0 1;... 1 0 0 0 0]; tf_correct = 0; assert(isequal(intersection_of_matrices(A,B),tf_correct))

ans = 5×5 logical array 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1

Output argument "tf" (and maybe others) not assigned during call to "intersection_of_matrices". Error in Test1 (line 12) assert(isequal(intersection_of_matrices(A,B),tf_correct))

2   Fail
A = [1 1 0 0 0;... 0 1 1 0 0;... 0 0 1 1 0;... 0 0 0 1 1;... 1 0 0 0 1]; B = [0 0 0 0 1;... 1 0 0 0 0;... 0 1 0 0 0;... 0 0 1 0 0;... 0 0 0 1 0]; tf_correct = 0; assert(isequal(intersection_of_matrices(A,B),tf_correct))

ans = 5×5 logical array 1 1 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 1 1 1 0 0 0 1

Output argument "tf" (and maybe others) not assigned during call to "intersection_of_matrices". Error in Test2 (line 14) assert(isequal(intersection_of_matrices(A,B),tf_correct))

3   Fail
A = [1 1 0 0 1;... 1 1 1 0 0;... 0 1 1 1 0;... 0 0 1 1 1;... 1 0 0 1 1]; B = [0 0 1 0 0;... 0 0 0 1 0;... 0 0 0 0 1;... 1 0 0 0 0;... 0 1 0 0 0]; tf_correct = 0; assert(isequal(intersection_of_matrices(A,B),tf_correct))

ans = 5×5 logical array 1 1 0 0 1 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0 0 1 1

Output argument "tf" (and maybe others) not assigned during call to "intersection_of_matrices". Error in Test3 (line 13) assert(isequal(intersection_of_matrices(A,B),tf_correct))

4   Fail
A = [1 1 1 0 1;... 1 1 1 1 0;... 0 1 1 1 1;... 1 0 1 1 1;... 1 1 0 1 1]; B = [0 1 0 0 0;... 1 0 0 0 0;... 0 0 0 0 1;... 0 0 0 1 0;... 0 0 1 0 0]; tf_correct = 1; assert(isequal(intersection_of_matrices(A,B),tf_correct))

ans = 5×5 logical array 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1

Output argument "tf" (and maybe others) not assigned during call to "intersection_of_matrices". Error in Test4 (line 12) assert(isequal(intersection_of_matrices(A,B),tf_correct))

5   Fail
A = [1 1 0 0 1;... 1 1 1 0 0;... 0 1 1 1 0;... 0 0 1 1 1;... 1 1 0 1 1]; B = [0 0 1 0 0;... 0 0 0 1 0;... 0 0 0 0 1;... 1 0 0 0 0;... 0 1 0 0 0]; tf_correct = 1; assert(isequal(intersection_of_matrices(A,B),tf_correct))

ans = 5×5 logical array 1 1 0 0 1 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 1

Output argument "tf" (and maybe others) not assigned during call to "intersection_of_matrices". Error in Test5 (line 13) assert(isequal(intersection_of_matrices(A,B),tf_correct))