Recursive filtering with given transfer function
조회 수: 11 (최근 30일)
이전 댓글 표시
Hello everybody,
I'm working on my graduation project and I'm developing a filter (based on kalman filtering) in order to compensate a dynamometer's dynamic affecting high frequency measurements.
Following some other works I've been able to define the filter's continuous-time transfer function and it does exactly what it should. But now I'm facing problems applying it to measurements data.
I'll be honest, I do not know much about digital filtering and I'm quite new to matlab, but I've not been able to apply the filter with success.
In the works I've studied it's said to use the discrete equivalent of the continuous-time TF and apply it recursively at each time-step to the measurements data.
I've tried discretizing the TF with the c2d matlab's function and using the filter matlab's function to filter a simulated system-response in order to try to reconstruct the input signal, but it does not what it should.
This is the discrete-time TF that I've calculated to compensate a simple 1-dof system:
filter_discrete_tf =
-7.173 z^-1 + 7.846 z^-2
-------------------------------------------------
1 - 0.3269 z^-1 - 4.226e-20 z^-2 - 2.501e-40 z^-3
Is there a way to apply it "recursively at each time-step" to the measurements data?
Any help will be really appreciated.
I'm sorry for my bad english and my poor basis of digital filtering.
댓글 수: 0
답변 (1개)
Wayne King
2012년 11월 12일
편집: Wayne King
2012년 11월 12일
I'll assume that your rational Z-transform above is correct. How did you use the above with filter? From the expression above, your numerator and denominator coefficient vectors should be:
B = [0 -7.173 7.846];
A = [1 -0.3269];
fvtool(B,A)
I did not use your z^{-2} and z^{-3} terms since those are 10^{-20} and 10^{-40} respectively.
It looks like a stable highpass filter. Is this what you are after?
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!