Mar 1, 2010 #1 M m.azangoo Junior Member level 2 Joined Jul 27, 2009 Messages 21 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location iran Activity points 1,390 Why in MATLAB when we define A matrix as A=[1 2 3;4 5 6;7 8 9] whereas det(A)=0 (determinant(A)=0) , it give us this result for inverse of A: inv(A)= ans = 1.0e+016 * -0.4504 0.9007 -0.4504 0.9007 -1.8014 0.9007 -0.4504 0.9007 -0.4504 why we have inverse when det(A)=0 What kind of algorithm matlab use to define inverse of matrix? thanks for your attention
Why in MATLAB when we define A matrix as A=[1 2 3;4 5 6;7 8 9] whereas det(A)=0 (determinant(A)=0) , it give us this result for inverse of A: inv(A)= ans = 1.0e+016 * -0.4504 0.9007 -0.4504 0.9007 -1.8014 0.9007 -0.4504 0.9007 -0.4504 why we have inverse when det(A)=0 What kind of algorithm matlab use to define inverse of matrix? thanks for your attention
Mar 3, 2010 #2 Z zorro Advanced Member level 4 Joined Sep 6, 2001 Messages 1,130 Helped 357 Reputation 712 Reaction score 298 Trophy points 1,363 Location Argentina Activity points 8,916 Hi m.azangoo, note that when you request inv(A) the following warning message is printed (at least in release 14): Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 2.203039e-018. Type "doc inv" in the command window in order to access to the help page with details about the algoritms user. regards Z
Hi m.azangoo, note that when you request inv(A) the following warning message is printed (at least in release 14): Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 2.203039e-018. Type "doc inv" in the command window in order to access to the help page with details about the algoritms user. regards Z