view m-toolbox/classes/@pz/rz2iir.m @ 28:01b86b780ba7
database-connection-manager
Remove LTPDARepositoryManager implementation. Java code
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % RZ2IIR Return a,b IIR filter coefficients for a real zero designed using the bilinear transform.
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: RZ2IIR Return a,b IIR filter coefficients for a real zero
+ − % designed using the bilinear transform.
+ − %
+ − % CALL: [a,b] = rz2iir(z, fs)
+ − %
+ − % REMARK: This is just a helper function. This function should only be
+ − % called from class functions.
+ − %
+ − % INPUT: z - zero object
+ − % fs - the sample rate for the filter
+ − %
+ − % VERSION: $Id: rz2iir.m,v 1.7 2011/02/18 16:48:54 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function varargout = rz2iir(varargin)
+ −
+ − z = varargin{1};
+ − fs = varargin{2};
+ −
+ − f0 = z.f;
+ − w0 = f0*2*pi;
+ −
+ − a(1) = (2*fs + w0) / w0;
+ − a(2) = (-2*fs + w0) / w0;
+ −
+ − b(1) = 1;
+ − b(2) = 1;
+ −
+ − varargout{1} = a;
+ − varargout{2} = b;
+ − end
+ −