FUNCTION REFERENCE
sgolayfilt
Smooth signals by local least-squares polynomial fits.
Smooth signals by local least-squares polynomial fits.
Syntax
y = sgolayfilt(x,order,framelen)Use the center fit inside the signal. Near each endpoint, fit the first/last full frame and evaluate the polynomial at the current sample. This preserves polynomials through the requested order, including at the endpoints. Matrices operate down columns; each column needs at least framelen samples. See sgolay for design bounds.
Example
y = sgolayfilt([1 4 9 16 25 36 49],2,5);Differences from MATLAB: finite real double inputs, unweighted smoothing only; no dimension or weighting arguments.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.