Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: inverse matrix inv pinv linfactor ginv
Date: Sun, 4 Oct 2009 13:08:01 +0000 (UTC)
Organization: University of Miami
Lines: 5
Message-ID: <haa6nh$srj$1@fred.mathworks.com>
References: <ha8r6f$pf7$1@fred.mathworks.com> <haa339$1tk$1@fred.mathworks.com> <haa48p$in7$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1254661681 29555 172.30.248.37 (4 Oct 2009 13:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 4 Oct 2009 13:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1036475
Xref: news.mathworks.com comp.soft-sys.matlab:574786


How about:

invX = X\eye(size(X));

Dave