Path: news.mathworks.com!not-for-mail
From: Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: glmfit
Date: Wed, 04 Nov 2009 17:01:08 -0500
Organization: The MathWorks, Inc.
Lines: 6
Message-ID: <hcstj4$a3g$1@fred.mathworks.com>
References: <hcs7jq$dnp$1@fred.mathworks.com> <hcs88q$qgf$1@fred.mathworks.com> <hcs9uq$ecf$1@fred.mathworks.com> <hcsevl$2o4$1@fred.mathworks.com> <hcsika$kc9$1@fred.mathworks.com>
NNTP-Posting-Host: perkinsp.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1257372068 10352 172.31.57.88 (4 Nov 2009 22:01:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 22:01:08 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <hcsika$kc9$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:582539


Luca Di Simone wrote:
> Yes, I used the way suggusted by peter and the output is the matrix is singular. Can you help?

It may be that you are using an old version of this function.  It definitely does work in the current version.

If that's the case, you might try passing in a column of ones for x, and turning off the constant, as I suggested in an earlier post.