FUNCTION REFERENCE

cfit.integrate

Integrate a fitted cfit curve from a reference point.

Integrate a fitted cfit curve from a reference point.

Syntax

int = integrate(fitresult, x, x0)

Evaluates the definite integral of fitresult from x0 to each point in x.

Example

f = fit([1; 2; 3; 4], [2; 4; 6; 8], 'poly1'); integrate(f, 2, 0)   % 4

Differences from MATLAB: Curve fits (cfit) only.

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