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$>
References: <> <> <gqd172$fp1$> <gqd6us$7m9$> <gqd7sp$9t2$> <gqde7a$lr6$> <gqdfoj$es8$> <gqf99a$4b6$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1238054103 18242 (26 Mar 2009 07:55:03 GMT)
NNTP-Posting-Date: Thu, 26 Mar 2009 07:55:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: 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]'

% 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