Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to solve XA + B = 0?
Date: Thu, 2 Jul 2009 12:51:38 -0400
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <h2iohb$kjm$1@fred.mathworks.com>
References: <h2ink4$acj$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1246553451 21110 144.212.105.187 (2 Jul 2009 16:50:51 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Jul 2009 16:50:51 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:552447



"Tao Shen" <tshen@mathworks.com> wrote in message 
news:h2ink4$acj$1@fred.mathworks.com...
> Hello all,
>
> I need to solve a equation which is XA + B =0. It is a least squares 
> problem.
>
> The X is a 2*N matrix, A is N*2, and B is 2*2. Because A is N*2, it seems 
> we can't find its right inverse matrix but only left inverse matrix. 
> However it is not useful in this case.
>
> Is there any method to solve this problem?

Use MRDIVIDE (/).

-- 
Steve Lord
slord@mathworks.com