Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!l39g2000yqh.googlegroups.com!not-for-mail From: "printer newbie!" <newsboost@gmail.com> Newsgroups: comp.soft-sys.matlab Subject: Re: Matrix inversion problem - What's going on? Date: Tue, 12 Apr 2011 03:58:01 -0700 (PDT) Organization: http://groups.google.com Lines: 36 Message-ID: <1ce4d6d3-488e-4d04-a153-a7137ff652b3@l39g2000yqh.googlegroups.com> References: <82709a89-8b9f-41ca-90b4-c9738d23a8c2@d11g2000yqo.googlegroups.com> <invav1$9fq$1@fred.mathworks.com> NNTP-Posting-Host: 130.226.19.55 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1302605881 29939 127.0.0.1 (12 Apr 2011 10:58:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 12 Apr 2011 10:58:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l39g2000yqh.googlegroups.com; posting-host=130.226.19.55; posting-account=Yu_LegoAAABLhpdiBJFrvdfWkjmK6ZBb User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Ubuntu/10.10 Chromium/10.0.648.133 Chrome/10.0.648.133 Safari/534.16,gzip(gfe) Xref: news.mathworks.com comp.soft-sys.matlab:721400 On 11 Apr., 18:41, "Florin Neacsu" <fneac...@gmail.com> wrote: > "printer newbie!" <newsbo...@gmail.com> wrote in message <82709a89-8b9f-41ca-90b4-c9738d23a...@d11g2000yqo.googlegroups.com>... > > Dear all > > > I've uploaded this pdf-file: > >http://www.2shared.com/document/o9q5B5Rw/Matlab_matrix_inversion.html > > > As you can see, I'm using Matlab: > > > 1) with two different matrices: A=[1 2; 3 4;5 6] and A=[1 2; 3 4;5 5] > > and b=[1;2;3], meaning that: > > 2) x=A\b can easily be found > > 3) A*x = b, right? NO! Not in the second case! > > > Any hints/explanations are most welcome. I've put some comments in the > > uploaded pdf-file and I guess that those of you who'll answer knows > > everything about illposed problems, SVD and possible some other things > > that I don't know of. I also tried to find the conditioning number for > > the two matrices, however I'm a bit lost and can't come up with a good > > explanation myself. > > As it was said above, this is an overdetermined system. If you are looking for an unique solution, then you system must have one of its lines equal to a linear combination of the two others. > In general if you have p equations and n unknowns (with p>n for overdetermined), your system must have n linear independent equations, hence p-n linear dependent eq. Ok, thanks. So the number of rows is the number of equations and the number of columns is the number of unknowns... So it was just a coincidence that it worked out for the first matrix, but not the second... What property (of the matrix A) is it then, that makes it work out great for the first A-matrix, when they're both the same physical size (3x2)? Are any lines in the first matrix linear combinations of another line?