y =
downsample (x, n)
¶y =
downsample (x, n, offset)
¶Downsample the signal, selecting every nth element. If x is a matrix, downsample every column.
For most signals you will want to use decimate
instead since
it prefilters the high frequency components of the signal and
avoids aliasing effects.
If offset is defined, select every nth element starting at sample offset.
See also: decimate, interp, resample, upfirdn, upsample.
Package: signal