How to do matrix inversion for a matrix having RCOND error

3 views (last 30 days)
I am doing Matrix inversion (33 x 33 marix) and getting warning message like "matrix is badly scaled or singular " i need that matrix inversion what is the possible way to get the answer
Please help me to solve this

Accepted Answer

John D'Errico
John D'Errico on 12 Mar 2015
I'm sorry, but you can't compute an inverse of a matrix that has no inverse.
At best, you can compute a pseudo-inverse, using a tool like pinv. The pinv result will give you many of the properties that you desire for an inverse, but you need to recognize the fundamental problem.
If you decide you cannot tolerate not having a true inverse for this problem, then, well, get a better matrix. Need I repeat myself? You can't compute the inverse of a singular matrix.
Depending on how the matrix was created, very often scaling your problem may be of some help, or there may be other things you can do. But so far, all you have told us is that the matrix is singular.
  1 Comment
Abeed shaik
Abeed shaik on 1 Apr 2015
Edited: Abeed shaik on 1 Apr 2015
Thanq Mr.John for your answer to my question. By using pinv i got the inverse of my desired matrix.The matrix I need to do inverse is not singular but its most of the elements are sparse thats why i cant get inversion using inv command.By using pinv i got its inverse thanking you again for that

Sign in to comment.

More Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!