How to know the passband of the savitzky golay matlab filter?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Star Strider
2022년 11월 2일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!