From: "B.K. Chen" <bkchen.eo94g@nctu.edu.tw>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: fitting data to an integral
Message-ID: <ef500c3.3@webcrossing.raydaftYaTP>
Date: Sat, 10 Mar 2007 06:25:12 -0500
References: <ef500c3.-1@webcrossing.raydaftYaTP> <ef500c3.0@webcrossing.raydaftYaTP> <ef500c3.1@webcrossing.raydaftYaTP> <ef500c3.2@webcrossing.raydaftYaTP>
Lines: 18
NNTP-Posting-Host: 140.113.162.69
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:396641



> So you have data where the integral
> is given as a function of x?

Yeah~ It's a function of x. My data points are (x, f(x) )

> As long as a/b>=10 or so, I'd try a
> Gauss-Hermite numerical quadrature
> inside the objective function. Then
> any optimizer will be fine. For
> smaller values of a/b, I'd just use
> quad over a finite set of limits,
> base the upper limit on the value
> of a/b.

In cftool(Create Custom Equation --> General Equations ),
 it seems that we cannot input quadl directly , does it?

B.K.