Problem 546. Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B?
>>A=[2,4;3,5];
>>B=[-2.5,2;1.5,-1];
>>isInverse(A,B)
ans = 1
Solution Stats
Problem Comments
-
12 Comments
Show
9 older comments
Andrew Cheyne
on 18 May 2023
make sure to round the inverse of B, it's the reason 1&2 test cases are incorrect.
SAYALI MORE
on 15 Oct 2023
i tried all the things but I am not able to solve this question can anybody help me with this question
Christian Schröder
on 15 Oct 2023
@Sayali Recall that if A is the inverse B, then AB = BA = I, where I is an identity matrix of appropriate dimensions. Also, brush up on your basic MATLAB, e.g. syntax and built-in functions. Good luck!
Solution Comments
Show commentsProblem Recent Solvers1096
Suggested Problems
-
1809 Solvers
-
find the maximum element of the matrix
521 Solvers
-
532 Solvers
-
There are 10 types of people in the world
1193 Solvers
-
Calculate Amount of Cake Frosting
27165 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!