- Aide de Scilab
- Traitement du Signal
- Filtrage
- How to design an elliptic filter
- analpf
- buttmag
- casc
- cheb1mag
- cheb2mag
- ell1mag
- eqfir
- eqiir
- faurre
- ffilt
- filt_sinc
- filter
- find_freq
- frmag
- fsfirlin
- group
- hilbert
- iir
- iirgroup
- iirlp
- kalm
- lev
- levin
- lindquist
- remez
- remezb
- sgolay
- sgolaydiff
- sgolayfilt
- srfaur
- srkf
- sskf
- syredi
- system
- trans
- wfir
- wfir_gui
- wiener
- wigner
- window
- yulewalk
- zpbutt
- zpch1
- zpch2
- zpell
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
sgolayfilt
Filter signal using Savitzky-Golay Filter.
Syntax
xf = sgolayfilt(X, B) xf = sgolayfilt(X, k, nf) xf = sgolayfilt(X, k, nf, w)
Arguments
- X
a real array. If it is a vector it contains the signal to be filtered else each column of X is filtered.
- B
a real n by n array: the set of filter coefficients produced by the sgolay function.
- k
a positive scalar with integer value: the fitting polynomial degree.
- k
a positive scalar with integer value: the filter length, must be odd and greater than k+1.
- xf
a real array: the filtered signal(s).
Description
This function applies a sgolay filter which can be specified either by its set of filter coefficients as produced by sgolay either by the degree of the polynomial and the filter length.
According to the article the -3dB cutoff frequency can be approximated by (k+1)/(3.2*nf-4.6).
Signal size should be greater than the filter length |
Examples
Bibliography
Abraham Savitzky et Marcel J. E. Golay, « Smoothing and Differentiation of Data by Simplified Least Squares Procedures », Analytical Chemistry, vol. 8, no 36, 1964, p. 1627–1639 (DOI 10.1021/ac60214a047)
http://en.wikipedia.org/wiki/Savitzky-Golay_filter.
On the Frequency-Domain Properties of Savitzky-Golay Filters.
See Also
History
Version | Description |
6.1.1 | Function sgolayfilt added. Courtesy of Serge Steer, INRIA |
Report an issue | ||
<< sgolaydiff | Filtrage | srfaur >> |