the matrix are given in the problem statement is A,B but function take x
and y and return answer in y that is bit confusing ,any how just use logic A*B^-1=I .
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A=[2,4;3,5];
B=[-2.5,2;1.5,-1];
y_correct = 1;
assert(isequal(isInverse(A,B),y_correct))
y =
1
|
2 | Pass |
A=[1,2;3,5];
B=[-5,2;3,-1];
y_correct = 1;
assert(isequal(isInverse(A,B),y_correct))
y =
1
|
482 Solvers
308 Solvers
Number of 1s in a binary string
2818 Solvers
420 Solvers
480 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!