Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Error using mnrfit
Date: Sun, 22 Jun 2008 22:35:35 -0400
Organization: The MathWorks, Inc.
Lines: 32
Message-ID: <g3n25n$qlf$1@fred.mathworks.com>
References: <g3h71p$615$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1214188535 27311 144.212.105.187 (23 Jun 2008 02:35:35 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 23 Jun 2008 02:35:35 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:475317




"Ketan " <useless.id@gmail.com> wrote in message 
news:g3h71p$615$1@fred.mathworks.com...
> Hello,
>
> I am getting the following error while using mnrfit.
>
> ====ERROR====
> ??? Error using ===> mnrfit
> Inputs to mnrfit must be floats, namely single or double.
>
> Error in ==> mnrfit at 125
> dataClass = superiorfloat(x,y);
> ====ERROR====
>
> The variable x is double. I tried type casting it by
> x=single(x); but the error persists.

Hint from the error message:

Input***_s_*** to mnrfit must be floats, namely single or double.

[Emphasis mine.]

Both the X and Y inputs to MNRFIT must be floats (i.e. single or double). 
You've eliminated X as the cause of the problem, which means ...

-- 
Steve Lord
slord@mathworks.com