Test if matrices are equivalent in matlab?



I have a matrix A=[2 3 1; 1 2 2; 3 5 3] (in matlab notation)

And have also been given the inverse:

A^(-1) = [-2 -7 4; 2 5 -3; -1 -1 1]

But if I in matlab make the inverse of: A=[2 3 1; 1 2 2; 3 5 3] with the
command A' I get:

A = [2 3 1; 1 2 2; 3 5 4]

A =

2 3 1
1 2 2
3 5 4

A'

ans =

2 1 3
3 2 5
1 2 4



Is there some efficient way to see that A' in matlab is the same as A^(-1) =
[-2 -7 4; 2 5 -3; -1 -1 1]?


.


Loading