Hi,
it rather looks to me that you need the inv() command
A =
1 2 3
4 5 6
7 8 9
>> B=inv(A)
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.541976e-18.
B =
1.0e+16 *
-0.4504 0.9007 -0.4504
0.9007 -1.8014 0.9007
-0.4504 0.9007 -0.4504