Matrix equations in MatLab

149 Views Asked by At

Do you by any chance know if I can solve matrix equations like this: $$\left ( B^{-1}X-A \right )^{-1}A^{-1}=I$$ in MatLab? Considering $A$ and $B$ are given and I need $X$.

I found how to do it for $AX=B$ but it's not helpful to me.

Namely I need a quick way to check if my calculations are okay because solutions are not provided in textbook.

Thanks for any info.

1

There are 1 best solutions below

2
On BEST ANSWER

Why not solve for $X$? You'll get $X = B(A+A^{-1})$, which I'm sure you can do in Matlab.