Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: funny problem about the precision of matrix transpose and inverse.
Date: Wed, 31 Oct 2012 07:18:12 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 10
Message-ID: <k6qjbk$cvq$1@newscl01ah.mathworks.com>
References: <k6mp64$9uj$1@newscl01ah.mathworks.com> <k6msmk$l8l$1@newscl01ah.mathworks.com> <k6mvto$2bk$1@newscl01ah.mathworks.com> <k6omou$54f$1@newscl01ah.mathworks.com> <k6q8kc$8i4$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1351667892 13306 172.30.248.46 (31 Oct 2012 07:18:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 31 Oct 2012 07:18:12 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:781716

"Ha" wrote in message <k6q8kc$8i4$1@newscl01ah.mathworks.com>...

> 
> Backslash seems provide no help.  I still get a warning that the matrix is badly scaled or nearly singular and sometimes it gives rise to NaNs.

Then your system is not invertible, or nearly so. Often because you forget to add appropriate constraints, boundary condition to make the problem well-posed. It might also be badly scaled, as the warning message suggests.

You could try to use pinv(), but the problem might lie well before the system was formed.

Bruno