Cody

Solution 1794215

Submitted on 21 Apr 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 = [-5 17; 10 0]; B = [-15 3; 100 0]; y_correct = [ 5 1; 10 0]; assert(isequal(divi(A,B),y_correct))

Undefined function or variable 'A'. Error in divi (line 2) y =gcd(A,B); Error in Test1 (line 5) assert(isequal(divi(A,B),y_correct))

2   Fail
A = [24 39; 6 89]; B = [-18 169; 250 17]; y_correct = [ 6 13; 2 1]; assert(isequal(divi(A,B),y_correct))

Undefined function or variable 'A'. Error in divi (line 2) y =gcd(A,B); Error in Test2 (line 5) assert(isequal(divi(A,B),y_correct))