Savitzky-Golay Differentiation FIR filter (Generalized)

Generalized implementation of the Savitzky-Golay FIR filter with extensive documentation. Allows asymmetrical and non-integer parameters.

You are now following this Submission

The Savitzky-Golay filter is based on approximating the given data by a polynomial using the Least-Squares parameter estimation. This implementation contains a function SG_calc.m which calculated the filter coefficients and an example script for simple implementation. Asymmetrical and non-integer parameters are allowed.

The SG filter is suitable for direct calculation of any signal derivatives of an arbitrary order limited by the Signal-to-noise ration of the original signal and sampling.

Feel free to use it for any research project under the condition of citing the reference:

M. Brablc, V. Sova, and R. Grepl, “Adaptive feedforward controller for a DC motor drive based on inverse dynamic model with recursive least squares parameter estimation,” in Proceedings of the 2016 17th International Conference on Mechatronics - Mechatronika, ME 2016, D. Maga and T. Brezina, Eds. Prague, 2017, pp. 146–150.

Cite As

Martin (2026). Savitzky-Golay Differentiation FIR filter (Generalized) (https://www.mathworks.com/matlabcentral/fileexchange/68342-savitzky-golay-differentiation-fir-filter-generalized), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.1.1

corected help

1.1.0

added reference

1.0.3

added reference

1.0.2

added reference to the function

1.0.1

added reference

1.0.0