[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
fir1
(/tools/hpmatlab/toolbox/signal/fir1.m)
Function Synopsis
[b,a] = fir1(N,Wn,Ftype,Wind)
Help text
FIR1 FIR filter design using the window method.
B = FIR1(N,Wn) designs an N'th order lowpass FIR digital filter
and returns the filter coefficients in length N+1 vector B.
The cut-off frequency Wn must be between 0 < Wn < 1.0, with 1.0
corresponding to half the sample rate.
If Wn is a two-element vector, Wn = [W1 W2], FIR1 returns an
order N bandpass filter with passband W1 < W < W2.
B = FIR1(N,Wn,'high') designs a highpass filter.
B = FIR1(N,Wn,'stop') is a bandstop filter if Wn = [W1 W2].
For highpass and bandstop filters, N must be even.
By default FIR1 uses a Hamming window. Other available windows,
including Boxcar, Hanning, Bartlett, Blackman, Kaiser and Chebwin
can be specified with an optional trailing argument. For example,
B = FIR1(N,Wn,bartlett(N+1)) uses a Bartlett window.
B = FIR1(N,Wn,'high',chebwin(N+1,R)) uses a Chebyshev window.
FIR1 is an M-file implementation of program 5.2 in the IEEE
Programs for Digital Signal Processing tape. See also FIR2,
FIRLS, REMEZ, BUTTER, CHEBY1, CHEBY2, YULEWALK, FREQZ and FILTER.
Cross-Reference Information
This function calls
- abs /tools/hpmatlab/toolbox/matlab/elfun/abs.m
- cos /tools/hpmatlab/toolbox/matlab/elfun/cos.m
- disp /tools/hpmatlab/toolbox/matlab/general/disp.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- exp /tools/hpmatlab/toolbox/matlab/elfun/exp.m
- filter /tools/hpmatlab/toolbox/matlab/datafun/filter.m
- fix /tools/hpmatlab/toolbox/matlab/elfun/fix.m
- hamming /tools/hpmatlab/toolbox/signal/hamming.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- pi /tools/hpmatlab/toolbox/matlab/elmat/pi.m
- real /tools/hpmatlab/toolbox/matlab/elfun/real.m
- rem /tools/hpmatlab/toolbox/matlab/elfun/rem.m
- return /tools/hpmatlab/toolbox/matlab/lang/return.m
- sin /tools/hpmatlab/toolbox/matlab/elfun/sin.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- sqrt /tools/hpmatlab/toolbox/matlab/elfun/sqrt.m
This function is called by
- decimate /tools/hpmatlab/toolbox/signal/decimate.m
- filtdemo /tools/hpmatlab/toolbox/signal/filtdemo.m
- resample /tools/hpmatlab/toolbox/signal/resample.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON