iir - Iir digital filter (original) (raw)
Scilab 5.3.3
- Scilab help
- Signal Processing
- How to
- Signal
- analpf
- bilt
- buttmag
- casc
- cepstrum
- cheb1mag
- cheb2mag
- chepol
- convol
- corr
- cspect
- czt
- detrend
- dft
- ell1mag
- eqfir
- eqiir
- faurre
- ffilt
- fft
- fft2
- fftshift
- filt_sinc
- filter
- find_freq
- findm
- frfit
- frmag
- fsfirlin
- group
- hank
- hilb
- hilbert
- iir
- iirgroup
- iirlp
- intdec
- jmat
- kalm
- lattn
- lattp
- lev
- levin
- lindquist
- mese
- mfft
- mrfit
- %asn
- %k
- %sn
- phc
- pspect
- remez
- remezb
- rpem
- sincd
- srfaur
- srkf
- sskf
- syredi
- system
- trans
- wfir
- wiener
- wigner
- window
- yulewalk
- zpbutt
- zpch1
- zpch2
- zpell
Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function
Scilab help >> Signal Processing > iir
Calling Sequence
[hz]=iir(n,ftype,fdesign,frq,delta)
Arguments
n
positive number witn inteher value, the filter order.
ftype
string specifying the filter type, the possible values are:'lp' for low-pass,'hp' for high pass,'bp' for band pass and'sb' for stop band.
fdesign
string specifying the analog filter design, the possible values are: 'butt','cheb1', 'cheb2' and'ellip'
frq
2-vector of discrete cut-off frequencies (i.e.,0<frq<.5). For 'lp' and'hp' filters only frq(1) is used. For 'bp' and 'sb' filtersfrq(1) is the lower cut-off frequency andfrq(2) is the upper cut-off frequency
delta
2-vector of error values for cheb1,cheb2, and ellip filters where only delta(1) is used forcheb1 case, only delta(2) is used for cheb2 case, anddelta(1) and delta(2) are both used for ellip case.0<delta(1),delta(2)<1
- for
cheb1filters1-delta(1)<ripple<1in passband - for
cheb2filters0<ripple<delta(2)in stopband - for
ellipfilters1-delta(1)<ripple<1in passband and0<ripple<delta(2)in stopband
Examples
hz=iir(3,'bp','ellip',[.15 .25],[.08 .03]);
[hzm,fr]=frmag(hz,256);
plot2d(fr',hzm')
xtitle('Discrete IIR filter band pass 0.15<fr<0.25 ',' ',' ');
q=poly(0,'q');
hzd=horner(hz,1/q)
See Also
- eqfir — minimax approximation of FIR filter
- eqiir — Design of iir filters
- analpf — create analog low-pass filter
- bilt — bilinear or biquadratic transform SISO system given by a zero/poles representation