Recursive filtering with given transfer function
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Wayne King
el 12 de Nov. de 2012
Editada: Wayne King
el 12 de Nov. de 2012
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?
1 comentario
Ver también
Categorías
Más información sobre Digital Filter Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!