Transfer Function with Z Domain.
Afficher commentaires plus anciens
Hi There. I have to obtain a z domain transfer function of 1khz low pass filter to implement this in microcontroller. I heard that its easy to obtain transfer function with designing a fir filter in Matlab. Help please :(
Réponses (1)
Wayne King
le 14 Avr 2012
If you design an FIR filter in MATLAB, then you have the Z transform coefficients (the coefficients of the polynomial in z^{-1}).
For example: Assume your data is sampled at 10 kHz. The cutoff frequency is 1 kHz, which in normalized frequency is 0.2\pi radians/sample. Design an order 20 FIR filter using the window method.
Wn = 0.2;
b = fir1(20,0.2);
% view magnitude response
fvtool(b,1,'Fs',1e4)
The vector of coefficients, b, are the terms of the polynomial in z^{-1} for n = 0,1,2,.... 20
You can design FIR filters in many ways, not just using fir1().
Catégories
En savoir plus sur Digital Filter Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!