low-pass to other filter transform
hzt=trans(hz,tr_type,frq)
hzt=trans(pd,zd,gd,tr_type,frq)
[pt,zt,gt]=trans(hz,tr_type,frq)
[pt,zt,gt]=trans(pd,zd,gd,tr_type,frq)
: :pd Vector of given filter poles : :zd Vector of given filter zeros : :gd scalar: the given filter gain : :tr_type string, the type of transformation, see description for
possible values
: :hzt transformed filter transfert function. : :pt vector of transformed filter zeros. : :zt vector of transformed filter poles. : :gt a scalar: transformed filter gain. :
function for transforming standardized low-pass filter given its poles-zeros_gain representation into one of the following filters:
:
`clf`_()
Hlp=`iir`_(3,'lp','ellip',[0.1 0],[.08 .03]);
Hbp=trans(Hlp,'bp',[0.01 0.1]);
Hsb=trans(Hlp,'sb',[0.01 0.1])
`clf`_();`gainplot`_([Hlp;Hbp;Hsb],1d-3,0.48);
l=`legend`_(['original low pass';'band pass';'stop band']);
l.legend_location="in_lower_left";