FUNCTION REFERENCE

cfit.coeffvalues

Return the fitted coefficient values of a cfit or sfit object.

Return the fitted coefficient values of a cfit or sfit object.

Syntax

vals = coeffvalues(fitresult)

Returns a row vector of fitted parameter values in the order of coeffnames(fitresult).

Example

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

Differences from MATLAB: None.

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