Inversion of ill Contioned Matrices

In my code I have to take inversion of matrices at a certain point. When I am trying to take the inverse of ill conditioned matrices, I am getting a weird result.
Can anyone suggest me a method about how to take inversion of ill conditioned matrices. Thanks in advance.

Answers (1)

Matt Fig
Matt Fig on 19 Feb 2011
You could try scaling, or using PINV. However, I hope you are not taking the inverse of a matrix in order to solve a system of linear equations. If so, try backslash instead. It is much faster.
Ax = b % If this is the equation, the following are ways of solving it.
x = A\b = inv(A)*b % The \ operation is much preferred.

Asked:

on 19 Feb 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!