Transfer Function with Z Domain.
显示 更早的评论
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 :(
回答(1 个)
Wayne King
2012-4-14
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().
类别
在 帮助中心 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!