sgolayfilt
Savitzky-Golay smoothing filter.
📝Syntax
Y = sgolayfilt(X, K, F)
Y = sgolayfilt(X, K, F, W)
Y = sgolayfilt(X, K, F, W, DIM)
📥Input Arguments
Parameter Description
X input signal.
K polynomial order.
F frame length.
W positive weighting vector. Use [] for default weights.
DIM dimension to filter along.
📤Output Arguments
Parameter Description
Y smoothed signal.
📄Description

sgolayfilt smooths data using Savitzky-Golay FIR coefficients.

💡Examples
y = sgolayfilt([1 2 3 2 1], 2, 5);
🔗See Also
sgolaymedfilt1
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub