Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Solve Ax = b for nxn Hilbert Matrix
Date: Wed, 21 Jan 2009 16:35:18 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <gl7is6$gte$1@fred.mathworks.com>
References: <gl7gsg$oj3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1232555718 17326 172.30.248.35 (21 Jan 2009 16:35:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Jan 2009 16:35:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:512963

"Ashley Daly" <kl0vis3000@hotmail.com> wrote in message <gl7gsg$oj3$1@fred.mathworks.com>...
> Hi. I've never used MATLAB before, but I have to write a program that solves Ax = b where A is the nxn Hilbert matrix and b is the nx1 vector of all ones. I have no idea how to generate this in MATLAB. Can anyone help or give me some helpful hints? Thanks.

 x = hilbert(n)\ones(n,1);

works fine for me.  Did you have trouble with it?

Roger Stafford