FUNCTION REFERENCE
integrate
Integral of a curve fit from x0 to each point.
Integral of a curve fit from x0 to each point.
Syntax
F = integrate(cfit, x, x0)F has the shape of x; F(i) is the integral of the fit from x0 to x(i), by adaptive Gauss-Kronrod quadrature with interpolant breakpoints as interval ends.
Example
f = cfit(fittype('poly1'), 2, 0); integrate(f, 3, 0) % 9Differences from MATLAB: surface fits cannot be integrated.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.