[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
fir2
(/tools/hpmatlab/toolbox/signal/fir2.m)
Function Synopsis
[b,a] = fir2(nn, ff, aa, npt, lap, wind)
Help text
FIR2 FIR filter design using the window method - arbitrary filter shape.
B = FIR2(N,F,M) designs an N'th order FIR digital filter with the
frequency response specified by vectors F and M, and returns the
filter coefficients in length N+1 vector B. Vectors F and M specify
the frequency and magnitude breakpoints for the filter such that
PLOT(F,M) would show a plot of the desired frequency response.
The frequencies in F must be between 0.0 < F < 1.0, with 1.0
corresponding to half the sample rate. They must be in increasing
order and start with 0.0 and end with 1.0.
By default FIR2 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 = FIR2(N,F,M,bartlett(N+1)) uses a Bartlett window.
B = FIR2(N,F,M,chebwin(N+1,R)) uses a Chebyshev window.
See also FIR1, FIRLS, REMEZ, BUTTER, CHEBY1, CHEBY2, YULEWALK, FREQZ
and FILTER.
Cross-Reference Information
This function calls
- abs /tools/hpmatlab/toolbox/matlab/elfun/abs.m
- any /tools/hpmatlab/toolbox/matlab/ops/any.m
- ceil /tools/hpmatlab/toolbox/matlab/elfun/ceil.m
- conj /tools/hpmatlab/toolbox/matlab/elfun/conj.m
- diff /tools/hpmatlab/toolbox/matlab/datafun/diff.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
- eps /tools/hpmatlab/toolbox/matlab/elmat/eps.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
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- hamming /tools/hpmatlab/toolbox/signal/hamming.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- ifft /tools/hpmatlab/toolbox/matlab/datafun/ifft.m
- input /tools/hpmatlab/toolbox/matlab/lang/input.m
- j /tools/hpmatlab/toolbox/matlab/elmat/j.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- log /tools/hpmatlab/toolbox/matlab/elfun/log.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
- round /tools/hpmatlab/toolbox/matlab/elfun/round.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- sqrt /tools/hpmatlab/toolbox/matlab/elfun/sqrt.m
- zeros /tools/hpmatlab/toolbox/matlab/elmat/zeros.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON