[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
interp
(/tools/hpmatlab/toolbox/signal/interp.m)
Function Synopsis
[odata,b] = interp(idata,r,l,alpha)
Help text
INTERP Resample data at a higher rate using lowpass interpolation.
Y = INTERP(X,R) resamples the sequence in vector X at R times
the original sample rate. The resulting resampled vector Y is
R times longer, LENGTH(Y) = R*LENGTH(X).
A symmetric filter, B, allows the original data to pass through
unchanged and interpolates between so that the mean square error
between them and their ideal values is minimized.
Y = INTERP(X,R,L,ALPHA) allows specification of arguments
L and ALPHA which otherwise default to 4 and .5 respectively.
2*L is the number of original sample values used to perform the
interpolation. Ideally L should be less than or equal to 10.
The length of B is 2*L*R+1. The signal is assumed to be band
limited with cutoff frequency 0 < ALPHA <= 1.0.
[Y,B] = INTERP(X,R,L,ALPHA) returns the coefficients of the
interpolation filter B. See also DECIMATE.
Cross-Reference Information
This function calls
- abs /tools/hpmatlab/toolbox/matlab/elfun/abs.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.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
- filter /tools/hpmatlab/toolbox/matlab/datafun/filter.m
- fix /tools/hpmatlab/toolbox/matlab/elfun/fix.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- more /tools/hpmatlab/toolbox/matlab/general/more.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- pi /tools/hpmatlab/toolbox/matlab/elmat/pi.m
- sin /tools/hpmatlab/toolbox/matlab/elfun/sin.m
- size /tools/hpmatlab/toolbox/matlab/general/size.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