[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

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON