Curve Fitting Toolbox    
feval

Evaluate a fit result object or a fit type object

Syntax

Arguments

fresult
A fit result object.
x
A column vector of values at which fresult or ftype is evaluated.
ftype
A fit type object.
coef1,coef2,...
The model coefficients assigned to ftype.
f
A column vector containing the result of evaluating fresult or ftype at x.

Description

f = feval(fresult,x) evaluates the fit result object fresult at the values specified by x, and returns the result to f. You create a fit result object with the fit function.

f = feval(ftype,coef1,coef2,...,x) evaluates the fit type object ftype using the coefficients specified by coef1, coef2, and so on. You create a fit type object with the fittype function.

Remarks

You can also evaluate a fit result or a fit type object using the following syntax.

Example

Create a fit type object and evaluate the object at x using the specified model coefficients.

Create a fit result object and evaluate the object over a finer range in x.

See Also

fit, fittype


  excludedata fit