[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
This function is called by

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