Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: solve command
Date: Thu, 26 Mar 2009 07:55:03 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 23
Message-ID: <gqfccn$hq2$1@fred.mathworks.com>
References: <2223808.1237973902862.JavaMail.jakarta@nitrogen.mathforum.org> <29391649.1237975774607.JavaMail.jakarta@nitrogen.mathforum.org> <gqd172$fp1$1@fred.mathworks.com> <gqd6us$7m9$1@fred.mathworks.com> <gqd7sp$9t2$1@fred.mathworks.com> <gqde7a$lr6$1@fred.mathworks.com> <gqdfoj$es8$1@fred.mathworks.com> <gqf99a$4b6$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1238054103 18242 172.30.248.38 (26 Mar 2009 07:55:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Mar 2009 07:55:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:527855


> Hi Bruno,
> now I clearly understand what you mean. Thats the point, how can I say to Matlab, which solution he had to pick or rather what kind of options I have to say which solution is right for me??

Shane I invite you to medidate about this example:
A = [1     0     1
     0     1     1]
xright = [-1 1 3]'
b=A*xright

% Try to find xright:
x1 = A\b
x2 = pinv(A)*b

%%%%

Mr S.: x1 and x2 are not right, because it is not x, which I want
Mr Matlab: why? A*x1 = b and A*x2=b, they are both fine
Mr S: yes but I want x, not x1 and x2
Mr Matlab: Tell me more, how should I select x if you only gives me A and b?
Mr S: Because... <- you need to fill the rest of the story here

Bruno