[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
- abs /tools/hpmatlab/toolbox/matlab/elfun/abs.m
- ceil /tools/hpmatlab/toolbox/matlab/elfun/ceil.m
- conv /tools/hpmatlab/toolbox/matlab/datafun/conv.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- find /tools/hpmatlab/toolbox/matlab/ops/find.m
- fir1 /tools/hpmatlab/toolbox/signal/fir1.m
- fliplr /tools/hpmatlab/toolbox/matlab/elmat/fliplr.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- kaiser /tools/hpmatlab/toolbox/signal/kaiser.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- min /tools/hpmatlab/toolbox/matlab/datafun/min.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- rem /tools/hpmatlab/toolbox/matlab/elfun/rem.m
- return /tools/hpmatlab/toolbox/matlab/lang/return.m
- round /tools/hpmatlab/toolbox/matlab/elfun/round.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
This function is called by
- moddemo /tools/hpmatlab/toolbox/signal/moddemo.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON