How to know the passband of the savitzky golay matlab filter?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
The matlab savitzky golar filter which is a low pass filter takes inputs as order and frame length. sgolayfilt(x,order,framelen)
Can someone help me to understand the passband filter width from the input arguments order and framelength?
0 comentarios
Respuestas (1)
Star Strider
el 2 de Nov. de 2022
The Savitzky-Golay filter is not a discrete filter in the usual sense, and while all digital filters work best with uniformly-sampled data, it does not have that absolute requirement (the time vector or sampling frequency is not even a required argument).
The only way to determine the transfer function of the sgolayfilt function result is to take the fft of the output and divide it element-wise by the fft of the input, then plot the one-sided result to get the transfer function. Those signals ideally must be sampled regularly in order for the fft result to be meaningful. (The nufft function can be used for non-uniformly sampled data, however since all the other signal processing functions (that I am aware of) require uniformly-sampled data, it is best to resample them to a uniform sampling frequency if necessary before doing any signal processing on them.)
.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!