This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Decimation, interpolation, downsampling, upsampling, antialiasing filter

Resample uniform or nonuniform data to a new fixed rate. Perform decimation and linear or higher-order interpolation without introducing aliasing. Fill gaps in signals using autoregressive estimates.


decimateDecimation — decrease sample rate by integer factor
downsampleDecrease sample rate by integer factor
fillgapsFill gaps using autoregressive modeling
fillmissingFill missing values
interpInterpolation — increase sample rate by integer factor
interp11-D data interpolation (table lookup)
intfiltInterpolation FIR filter design
pchipPiecewise Cubic Hermite Interpolating Polynomial (PCHIP)
resampleResample uniform or nonuniform data to new fixed rate
splineCubic spline data interpolation
upfirdnUpsample, apply FIR filter, and downsample
upsampleIncrease sample rate by integer factor


Signal AnalyzerVisualize and compare multiple signals and spectra


Downsampling — Signal Phases

Use downsampling to obtain the polyphase components of a signal.

Downsampling — Aliasing

Aliasing is the distortion that occurs when copies of a signal's spectrum overlap. Downsampling can introduce aliasing.

Filtering Before Downsampling

Filter before downsampling to mitigate the distortion caused by aliasing.

Upsampling — Imaging Artifacts

Upsample a signal and see how upsampling can result in images.

Filtering After Upsampling — Interpolation

Upsample a signal and apply a lowpass interpolation filter to remove imaging artifacts.

Simulate a Sample-and-Hold System

Simulate the output of a sample-and-hold system by upsampling and filtering a signal.


Decimate, interpolate, or change the sample rate of signals, with or without intermediate filtering.

Changing Signal Sample Rate

Change the sample rates of a sinusoid and a recorded speech sample.

Multirate Filter Bank Implementation

Implement filter banks using the upfirdn function.

Featured Examples