This function computes the filter coefficients for all Savitzsky-Golay smoothing filters.
F = sgolay (p, n) F = sgolay (p, n, m) F = sgolay (p, n, m, ts)
polynomial
odd integer value, larger than polynomial p
positive integer less than 2^31 or logical
real or complex value
This is an Octave function. This function computes the filter coefficients for all Savitzsky-Golay smoothing filters of order p for length n (odd). m can be used in order to get directly the mth derivative; ts is a scaling factor.