Errors while solving an inverted matrix in Matlab

  • MATLAB
  • Thread starter jen0leb
  • Start date
  • #1
7
0

Main Question or Discussion Point

Hey,
i've been trying to find a better fit for a correlation, the numbers i'm dealing with are really small and when i try to solve for the coefficients using the inverse function on the matrices in Matlab i get this error:

Warning: Matrix is close to singular or badly scaled. Results
may be inaccurate. RCOND = 5.541639e-25.

I tried solving the inverted matrix in excel and the results didn't make much sense either! is there an other way to solve this problem? I really can't solve it by hand it'll take me ages.

i'm open to any suggestion...

J.
 

Answers and Replies

  • #2
Stephen Tashi
Science Advisor
7,208
1,326
is there an other way to solve this problem?
You might have better luck if you stated the problem you are trying to solve rather than making the problem "How do I numerically invert a nearly singular matrix?".

If the problem is going to be "How do I numerically invert a nearly singular matrix?" then this link might help.http://www.mathworks.com/matlabcentral/newsreader/view_thread/157000 It suggests using a pseudo-inverse instead of an inverse.
 

Related Threads on Errors while solving an inverted matrix in Matlab

Replies
1
Views
2K
  • Last Post
Replies
2
Views
791
Replies
1
Views
17K
Replies
1
Views
2K
Replies
1
Views
4K
Replies
3
Views
14K
Replies
1
Views
3K
  • Last Post
Replies
4
Views
24K
Top