FUNCTION REFERENCE

cfit

Create a curve fit object from a fittype and coefficient values.

Create a curve fit object from a fittype and coefficient values.

Syntax

f = cfit(fittype, coefficient1, coefficient2, ..., problem1, ...)

fit returns cfit objects for models of one independent variable. Call f(x) or feval(f, x); f.a reads coefficient a; coeffvalues, confint, predint, differentiate, integrate and plot work on it. A cfit made by this constructor has no confidence information.

Example

f = cfit(fittype('exp1'), 2, 0.5); f(0)   % 2

Differences from MATLAB: coefficients are read-only; make a new object to change them.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.