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
|
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
|
3 | Pass |
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
|
235 Solvers
Create matrix of replicated elements
321 Solvers
530 Solvers
156 Solvers
273 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!