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$>
References: <gl7gsg$oj3$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1232555718 17326 (21 Jan 2009 16:35:18 GMT)
NNTP-Posting-Date: Wed, 21 Jan 2009 16:35:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:512963

"Ashley Daly" <> wrote in message <gl7gsg$oj3$>...
> 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