Return a,b IIR filter coefficients for a real zero designed using the bilinear transform. usage: [a,b] = rz2iir(z, fs) z - zero object fs - the sample rate for the filter M Hewitson 2003-02-18
0001 function [a,b] = rz2iir(z, fs) 0002 0003 % Return a,b IIR filter coefficients for a real zero 0004 % designed using the bilinear transform. 0005 % 0006 % usage: [a,b] = rz2iir(z, fs) 0007 % 0008 % z - zero object 0009 % fs - the sample rate for the filter 0010 % 0011 % M Hewitson 2003-02-18 0012 % 0013 0014 f0 = get(z, 'f'); 0015 0016 w0 = f0*2*pi; 0017 0018 a(1) = (2*fs + w0) / w0; 0019 a(2) = (-2*fs + w0) / w0; 0020 0021 b(1) = 1; 0022 b(2) = 1;