PDA

View Full Version : singular matrix ????


ysun8@uic.edu
Apr21-04, 08:39 PM
Hi, guys,

< in matlab >
what should i do if i want to get the inverse matrix but it's a singular one? can i just add a very small identity matrix like 0.00005 on the diagnol? will it change the result?

eg:

w0 = S\meandiff

is that the same as

w0 = ( S+0.00005*eye( size( S ) ) )\meandiff


thanks!

cookiemonster
Apr22-04, 12:10 AM
Usually if you get a singular matrix, you screwed up somewhere before the inverting step.

cookiemonster