Signal Processing Toolbox Previous page   Next Page
upsample

Increase sampling rate by integer factor

Syntax

Description

y = upsample(x,n) increases the sampling rate of x by inserting n-1 zeros between samples. x can be a vector or a matrix. If x is a matrix, each column is considered a separate sequence. The upsampled y has x*n samples.

y = upsample(x,n,phase) specifies the number of samples by which to offset the upsampled sequence. phase must be an integer from 0 to n-1.

Examples

Increase the sampling rate of a sequence by 3:

Increase the sampling rate of the sequence by 3 and add a phase offset of 2:

Increase the sampling rate of a matrix by 3:

See Also

decimate, downsample, interp, interp1, resample, spline, upfirdn


Previous page  upfirdn vco Next page

© 1994-2005 The MathWorks, Inc.