Cody

Solution 2057163

Submitted on 13 Dec 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
x=[1,2,3;0,4,5;1,0,6]; y_correct = [24 5 -4 -12 3 2 -2 -5 4] assert(isequal(cofactor_mat(x),y_correct))

y_correct = 24 5 -4 -12 3 2 -2 -5 4

Undefined function 'adjoint' for input arguments of type 'double'. Error in cofactor_mat (line 2) y = adjoint(x)' Error in Test1 (line 5) assert(isequal(cofactor_mat(x),y_correct))

2   Fail
x=[1,7;2,0] y_correct=[0 -2 -7 1] assert(isequal(cofactor_mat(x),y_correct))

x = 1 7 2 0 y_correct = 0 -2 -7 1

Undefined function 'adjoint' for input arguments of type 'double'. Error in cofactor_mat (line 2) y = adjoint(x)' Error in Test2 (line 4) assert(isequal(cofactor_mat(x),y_correct))

3   Fail
x=zeros(5) y_correct=zeros(5) assert(isequal(cofactor_mat(x),y_correct))

x = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 y_correct = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Undefined function 'adjoint' for input arguments of type 'double'. Error in cofactor_mat (line 2) y = adjoint(x)' Error in Test3 (line 3) assert(isequal(cofactor_mat(x),y_correct))

Suggested Problems

More from this Author145