You can use one of the interpolation functions like interp1,
interp2, interpn, and spline. Depending on the behavior of
data, you may want to specify a certain type of interpolation
like linear, pchip, or spline. Splines have a tendency to
oscillate when there shouldn't be any oscillations.
You need to write a function that fminmax will call. Inside
this function, use the interpolation functions to fit the data.
You may want to create a persistent variable inside this function
to hold the data (read in once), hard code it in, or read it in
every call. I would use the persistent variable.
Jason
> Hi,
> I would like to use fminmax to optimize a discrete set of data; that
> is, no analytical objective function is available.
> The examples from the online manual only shows the optimization of
> objective functions. Is it possible to optimize a discrete set of data?
> Helen
> Sent via Deja.com
> http://www.deja.com/