FUNCTION REFERENCE

cfit.differentiate

Differentiate a fitted cfit curve or sfit surface.

Differentiate a fitted cfit curve or sfit surface.

Syntax

[fx, fxx] = differentiate(fitresult, x)

Evaluates first and optional second derivatives of the fitted curve at points x.

Example

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

Differences from MATLAB: Uses analytic derivatives for built-in library models and finite differences otherwise.

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