trans - low-pass to other filter transform
function for transforming standardized low-pass filter given its poles-zeros_gain representation into one of the following filters:
low-pass ('lp'), the cutoff frequency is given by the first entry of frq, the second one is ignored
high-pass ('hp'), the cutoff frequency is given by the first entry of frq, the second one is ignored
band-pass ('bp'), the frequency range is given by frq(1) and frq(2)
stop-band ('sb') , the frequency range is given by frq(1) and frq(2).
clf() Hlp=iir(3,'lp','ellip',[0.1 0],[.08 .03]); subplot(311) gainplot(Hlp,1d-3,0.48) legend('original low pass') Hbp=trans(Hlp,'bp',[0.01 0.1]); subplot(312) gainplot(Hbp,1d-3,0.48) legend('band pass') Hsb=trans(Hlp,'sb',[0.01 0.1]) subplot(313) gainplot(Hsb,1d-3,0.48) legend('stop band')
C. Bunks ;