Home > classes > @zero > rz2iir.m

rz2iir

PURPOSE ^

Return a,b IIR filter coefficients for a real zero

SYNOPSIS ^

function [a,b] = rz2iir(z, fs)

DESCRIPTION ^

 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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;

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003