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 Solvers1041
Suggested Problems
-
400 Solvers
-
Back to basics 8 - Matrix Diagonals
934 Solvers
-
304 Solvers
-
866 Solvers
-
Find the max element of the array
1732 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!