Signal Processing Toolbox Previous page   Next Page
downsample

Decrease sampling rate by integer factor

Syntax

Description

y = downsample(x,n) decreases the sampling rate of x by keeping every nth sample starting with the first sample. x can be a vector or a matrix. If x is a matrix, each column is considered a separate sequence.

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

Examples

Decrease the sampling rate of a sequence by 3:

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

Decrease the sampling rate of a matrix by 3:

See Also

decimate, interp, interp1, resample, spline, upfirdn, upsample


Previous page  diric dpss Next page

© 1994-2005 The MathWorks, Inc.