[Master Index] [Index for /tools/hpmatlab/toolbox/signal]

resample

(/tools/hpmatlab/toolbox/signal/resample.m)


Function Synopsis

[y, h] = resample( x, p, q, N, beta )

Help text

RESAMPLE  Change the sampling rate of a signal
	Y = RESAMPLE(X,P,Q) resamples the sequence in vector X at P/Q times
	the original sample rate using a polyphase implementation. 
	The resulting vector is P/Q times the length of X.  P and Q must be 
	positive integers.

	RESAMPLE applies an anti-aliasing (lowpass) FIR filter to X during the 
	resampling process.  The filter is designed using FIR1 with a Kaiser 
	window.

	Y = RESAMPLE(X,P,Q,N) uses N terms on either side of X[n] to perform
	the resampling.  The length of the FIR filter RESAMPLE uses is 
	proportional to N; by increasing N you get better accuracy at the 
	expense of more computation time.  If you don't specify N, RESAMPLE uses
	N = 10 by default.  If you let N = 0, RESAMPLE uses a zero-order hold.

	Y = RESAMPLE(X,P,Q,N,BETA) uses BETA as the design parameter for the 
	Kaiser window used to design the filter.  RESAMPLE uses BETA = 5 if
	you don't include it.

	Y = RESAMPLE(X,P,Q,B) uses B to filter X if B is a vector of filter 
	coefficients. 

	[Y,B] = RESAMPLE(X,P,Q,...) returns in B the coefficients of the filter
	applied to X during the resampling process.  

	See also: INTERP, DECIMATE, FIR1, KAISER, INTFILT

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