Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

DSP System Toolbox Functions

Alphabetical List By Category

Signal Generation, Manipulation, and Analysis

Signal Operations

dsp.DigitalDownConverterTranslate digital signal from Intermediate Frequency (IF) band to baseband and decimate it
dsp.DigitalUpConverterInterpolate digital signal and translate it from baseband to Intermediate Frequency (IF) band
dsp.FarrowRateConverterPolynomial sample rate converter with arbitrary conversion factor
dsp.InterpolatorLinear or polyphase FIR interpolation
dsp.SampleRateConverterMultistage sample rate converter
dsp.ConvolverConvolution of two signals
dsp.DCBlockerBlock DC component (offset) from input signal
dsp.WindowWindow object
dsp.PeakFinderIdentify peak values in input signal
dsp.PhaseExtractorExtract the unwrapped phase of a complex input
dsp.PhaseUnwrapperUnwrap signal phase
dsp.ZeroCrossingDetectorDetect zero crossings
dsp.DelayDelay input signal by fixed samples
dsp.VariableFractionalDelayDelay input by time-varying fractional number of sample periods
dsp.VariableIntegerDelayDelay input by time-varying integer number of sample periods

Signal Generation

dsp.ColoredNoiseGenerate colored noise signal
dsp.ChirpGenerate swept-frequency cosine (chirp) signal
dsp.HDLNCOGenerate real or complex sinusoidal signals—optimized for HDL code generation
dsp.NCOGenerate real or complex sinusoidal signals
dsp.SignalSourceImport variable from workspace
dsp.SineWaveGenerate discrete sine wave

Signal Import and Export

audioDeviceWriterPlay to sound card
dsp.UDPReceiverReceive UDP packets from network
dsp.UDPSenderSend UDP packets to network
dsp.AudioFileReaderStream from audio file
dsp.AudioFileWriterStream to audio file
dsp.BinaryFileReaderRead data from binary file
dsp.BinaryFileWriterWrite data to binary files
dsp.MatFileReaderRead MAT file
dsp.MatFileWriterWrite MAT file

Scopes and Data Logging

dsp.TimeScopeTime domain signal display and measurement
dsp.SpectrumAnalyzerDisplay frequency spectrum of time-domain signals
dsp.ArrayPlotDisplay vectors or arrays
dsp.LogicAnalyzerVisualize, measure, and analyze transitions and states over time
dsp.SignalSinkLog simulation data in buffer
hideHide scope window
showDisplay scope window
isNewDataReadyCheck spectrum analyzer for new data
getSpectrumDataSave spectrum data shown in spectrum analyzer
getSpectralMaskStatusGet test results of current spectral mask
Spectrum Analyzer ConfigurationConfigure Spectrum Analyzer for programmatic access
Time Scope ConfigurationControl scope appearance and behavior

Buffers, Switches, and Counters

dsp.AsyncBufferFIFO buffer
dsp.BufferBuffer input signal
dsp.DelayLineRebuffer sequence of inputs with one-sample shift
dsp.CounterCount up or down through specified range of numbers
rebuffer_delayNumber of samples of delay introduced by buffering and unbuffering operations

Filter Design and Analysis

Filter Design

filterDesignerOpen Filter Designer app
filterBuilderInteractive filter design
fvtoolVisualize frequency response of DSP filters
designApply design method to filter specification object
designmethodsMethods available for designing filter from specification object
designoptsValid input arguments and values for specification object and method
equirippleEquiripple single-rate FIR filter from specification object
fdesignFilter specification object
fdesign.bandpassBandpass filter specification object
fdesign.bandstopBandstop filter specification object
fdesign.highpassHighpass filter specification object
fdesign.lowpassLowpass filter specification
fdesign.decimatorDecimator filter specification object
fdesign.interpolatorInterpolator filter specification
fdesign.rsrcRational-factor sample-rate converter specification
fdesign.arbmagArbitrary response magnitude filter specification object
fdesign.arbmagnphaseArbitrary response magnitude and phase filter specification object
fdesign.audioweightingAudio weighting filter specification object
fdesign.ciccompCIC compensator filter specification object
fdesign.combIIR comb filter specification object
fdesign.differentiatorDifferentiator filter specification object
fdesign.fracdelayFractional delay filter specification object
fdesign.halfbandHalfband filter specification object
fdesign.hilbertHilbert filter specification object
fdesign.isinchpInverse sinc highpass filter specification
fdesign.isinclpInverse sinc lowpass filter specification
fdesign.notchNotch filter specification
fdesign.nyquistNyquist filter specification
fdesign.octaveOctave filter specification
fdesign.peakPeak filter specification
fdesign.polysrcConstruct polynomial sample-rate converter (POLYSRC) filter designer
freqsampReal or complex frequency-sampled FIR filter from specification object
helpHelp for design method with filter specification
setspecsSpecifications for filter specification object
validstructuresStructures for specification object with design method
designMultirateFIRMultirate FIR filter design
fircbandConstrained-band equiripple FIR filter
firceqripConstrained equiripple FIR filter
fireqintEquiripple FIR interpolators
firgrParks-McClellan FIR filter
firhalfbandHalfband FIR filter design
firlpnormLeast P-norm optimal FIR filter
firlsLeast-square linear-phase FIR filter design
firminphaseMinimum-phase FIR spectral factor
firnyquistLowpass Nyquist (Lth-band) FIR filter
firpr2chfbTwo-channel FIR filter bank for perfect reconstruction
ifirInterpolated FIR filter design
normalizefreqSwitch filter specification between normalized frequency and absolute frequency
ca2tfConvert coupled allpass filter to transfer function form
cl2tfConvert coupled allpass lattice to transfer function form
iircombIIR comb notch or peak filter
iirgrpdelayOptimal IIR filter with prescribed group-delay
iirlpnormLeast P-norm optimal IIR filter
iirlpnormcConstrained least Pth-norm optimal IIR filter
iirnotchSecond-order IIR notch filter
iirpeakSecond-order IIR peak or resonator filter
normalizefreqSwitch filter specification between normalized frequency and absolute frequency

Filter Analysis

filterDesignerOpen Filter Designer app
fvtoolVisualize frequency response of DSP filters
freqrespestFrequency response estimate via filtering
freqrespoptsOptions for filter frequency response analysis
freqzFrequency response of filter
grpdelayGroup delay response of discrete-time filter System object
impzImpulse response of discrete-time filter System object
impzlengthImpulse response length
measureMeasure frequency response characteristics of filter System object
noisepsdPower spectral density of filter output due to roundoff noise
noisepsdoptsOptions for running filter output noise PSD
phasedelayPhase delay response of discrete-time filter System object
phasezUnwrapped phase response for filter
stepzStep response of discrete-time filter System object
zerophaseZero-phase response of discrete-time filter System object
zplaneZ-plane zero-pole plot for discrete-time filter System object
coeffsFilter coefficients
costEstimate cost for implementing filter System objects
cumsecCumulative second-order section of BiquadFilter System object
dispFilter properties and values
doubleCast fixed-point filter to use double-precision arithmetic
fftcoeffsFrequency-domain coefficients
filtstates.cicStore CIC filter states
infoInformation about filter
normP-norm of filter
nstatesNumber of filter states
orderOrder of discrete-time filter System object
resetReset the internal states of a System object
firtypeType of linear phase FIR filter
isallpassDetermine whether filter is allpass
isfirDetermine whether filter System object is FIR
islinphaseDetermine whether filter has linear phase
ismaxphaseDetermine whether filter is maximum phase
isminphaseDetermine whether filter is minimum phase
isrealDetermine whether filter uses real coefficients
issosDetermine whether filter is SOS form
isstableDetermine whether filter is stable
scalecheckCheck scaling of SOS filter
blockGenerate block from a digital filter
realizemdlSimulink subsystem block for filter
allpass2wdfAllpass to Wave Digital Filter coefficient transformation
normalizefreqSwitch filter specification between normalized frequency and absolute frequency
wdf2allpassWave Digital Filter to allpass coefficient transformation

Frequency Transformations

firlp2hpConvert FIR lowpass filter to Type I FIR highpass filter
firlp2lpConvert FIR Type I lowpass to FIR Type 1 lowpass with inverse bandwidth
iirbpc2bpcTransform IIR complex bandpass filter to IIR complex bandpass filter with different characteristics
iirlp2bpTransform IIR lowpass filter to IIR bandpass filter
iirlp2bpcIIR lowpass to complex bandpass transformation
iirlp2bsTransform IIR lowpass filter to IIR bandstop filter
iirlp2bscTransform IIR lowpass filter to IIR complex bandstop filter
iirlp2hpTransform lowpass IIR filter to highpass filter
iirlp2lpTransform lowpass IIR filter to different lowpass filter
iirlp2mbTransform IIR lowpass filter to IIR M-band filter
iirlp2mbcTransform IIR lowpass filter to IIR complex M-band filter
iirlp2xcTransform IIR lowpass filter to IIR complex N-point filter
iirlp2xnTransform IIR lowpass filter to IIR real N-point filter
iirpowcompPower complementary IIR filter

Filter Implementation

Single-Rate Filters

dsp.AnalyticSignalAnalytic signals of discrete-time inputs
dsp.DifferentiatorDirect form FIR fullband differentiator filter
dsp.FIRFilterStatic or time-varying FIR filter
dsp.HDLFIRFilterFinite impulse response filter—optimized for HDL code generation
dsp.HampelFilterFilter outliers using Hampel identifier
dsp.HighpassFilterFIR or IIR highpass filter
dsp.LowpassFilterFIR or IIR lowpass filter
dsp.MedianFilterMedian filter
dsp.VariableBandwidthFIRFilterVariable bandwidth FIR filter
dsp.FrequencyDomainFIRFilterFilter input signal in frequency domain
dsp.AllpassFilterSingle section or cascaded allpass filter
dsp.AllpoleFilterIIR Filter with no zeros
dsp.BiquadFilterIIR filter using biquadratic structures
dsp.CoupledAllpassFilterCoupled allpass IIR filter
dsp.HighpassFilterFIR or IIR highpass filter
dsp.IIRFilterInfinite impulse response (IIR) filter
dsp.LowpassFilterFIR or IIR lowpass filter
dsp.NotchPeakFilterSecond-order tunable notching and peaking IIR filter
dsp.VariableBandwidthIIRFilterVariable bandwidth IIR filter
convertConvert filter structure of discrete-time filter
sysobjCreate filter System object from discrete-time filter
filterFilter data with filter object
dfilt.delayDelay filter
dfilt.dffirDiscrete-time, direct-form FIR filter
dfilt.dffirtDiscrete-time, direct-form FIR transposed filter
dfilt.dfsymfirDiscrete-time, direct-form symmetric FIR filter
dfilt.dfasymfirDiscrete-time, direct-form antisymmetric FIR filter
dfilt.farrowlinearfdFarrow Linear Fractional Delay filter
dfilt.farrowfdFractional Delay Farrow filter
dfilt.fftfirDiscrete-time, overlap-add, FIR filter
dfilt.latticemamaxDiscrete-time, lattice, moving-average filter with maximum phase
dfilt.latticemaminDiscrete-time, lattice, moving-average filter with minimum phase
dfilt.scalarDiscrete-time, scalar filter
dfilt.allpassAllpass filter
dfilt.calatticeCoupled-allpass, lattice filter
dfilt.calatticepcCoupled-allpass, power-complementary lattice filter
dfilt.df1Discrete-time, direct-form I filter
dfilt.df1sosDiscrete-time, SOS direct-form I filter
dfilt.df1tDiscrete-time, direct-form I transposed filter
dfilt.df1tsosDiscrete-time, SOS direct-form I transposed filter
dfilt.df2Discrete-time, direct-form II filter
dfilt.df2sosDiscrete-time, SOS, direct-form II filter
dfilt.df2tDiscrete-time, direct-form II transposed filter
dfilt.df2tsosDiscrete-time, SOS direct-form II transposed filter
dfilt.latticeallpassDiscrete-time, lattice allpass filter
dfilt.latticearDiscrete-time, lattice, autoregressive filter
dfilt.latticearmaDiscrete-time, lattice, autoregressive, moving-average filter
dfilt.wdfallpassWave digital allpass filter
dfilt.cascadeCascade of discrete-time filters
dfilt.parallelDiscrete-time, parallel structure filter
dfilt.cascadeallpassCascade of allpass discrete-time filters
dfilt.cascadewdfallpassCascade allpass WDF filters to construct allpass WDF

Multirate and Multistage Filters

dsp.ChannelizerPolyphase FFT analysis filter bank
dsp.ChannelSynthesizerPolyphase FFT synthesis filter bank
dsp.FarrowRateConverterPolynomial sample rate converter with arbitrary conversion factor
dsp.FIRDecimatorPolyphase FIR decimator
dsp.FIRHalfbandDecimatorHalfband decimator
dsp.FIRHalfbandInterpolatorHalfband interpolator
dsp.FIRInterpolatorPolyphase FIR interpolator
dsp.FIRRateConverterSample rate converter
dsp.HDLChannelizerPolyphase filter bank and fast Fourier transform—optimized for HDL code generation
dsp.HDLFIRRateConverterUpsample, filter, and downsample—optimized for HDL code generation
dsp.IIRHalfbandDecimatorDecimate by factor of two using polyphase IIR
dsp.IIRHalfbandInterpolatorInterpolate by a factor of two using polyphase IIR
dsp.DigitalDownConverterTranslate digital signal from Intermediate Frequency (IF) band to baseband and decimate it
dsp.DigitalUpConverterInterpolate digital signal and translate it from baseband to Intermediate Frequency (IF) band
dsp.FilterCascadeCreate a cascade of filter System objects
dsp.SampleRateConverterMultistage sample rate converter
dsp.CICCompensationDecimatorCompensate for CIC decimation filter using FIR decimator
dsp.CICCompensationInterpolatorCompensate for CIC interpolation filter using FIR interpolator
dsp.CICDecimatorDecimate input using Cascaded Integrator-Comb filter
dsp.CICInterpolatorInterpolate signal using Cascaded Integrator-Comb filter
dsp.DyadicAnalysisFilterBankDyadic analysis filter bank
dsp.DyadicSynthesisFilterBankReconstruct signals from subbands
dsp.SubbandAnalysisFilterDecompose signal into high-frequency and low-frequency subbands
dsp.SubbandSynthesisFilterReconstruct signal from high-frequency and low-frequency subbands
cascadeCascade of filter system objects
convertConvert filter structure of discrete-time filter
filterFilter data with filter object
polyphasePolyphase decomposition of multirate filter
sysobjCreate filter System object from discrete-time filter

Adaptive Filters

dsp.BlockLMSFilterCompute output, error, and weights using Block LMS adaptive algorithm
dsp.LMSFilterLMS adaptive filter
dsp.RLSFilterCompute output, error and coefficients using Recursive Least Squares (RLS) algorithm
dsp.AffineProjectionFilterCompute output, error and coefficients using Affine Projection (AP) Algorithm
dsp.AdaptiveLatticeFilterAdaptive lattice filter
dsp.FastTransversalFilterFast Transversal filter
dsp.FilteredXLMSFilterFiltered XLMS filter
dsp.FrequencyDomainAdaptiveFilterFrequency Domain Adaptive filter
dsp.KalmanFilterEstimate system measurements and states using Kalman filter

Transforms and Spectral Analysis

Transforms

dsp.DCTDiscrete cosine transform (DCT)
dsp.IDCTInverse discrete cosine transform (IDCT)
dsp.FFTDiscrete Fourier transform
dsp.HDLIFFTInverse fast Fourier transform — optimized for HDL code generation
dsp.HDLFFTFast Fourier transform — optimized for HDL code generation
dsp.IFFTInverse discrete Fourier transform (IDFFT)
dsp.ZoomFFT High-resolution FFT of a portion of a spectrum

Linear Prediction

dsp.CepstralToLPCConvert cepstral coefficients to linear prediction coefficients
dsp.LevinsonSolverSolve linear system of equations using Levinson-Durbin recursion
dsp.LPCToAutocorrelationConvert linear prediction coefficients to autocorrelation coefficients
dsp.LPCToCepstralConvert linear prediction coefficients to cepstral coefficients
dsp.LPCToLSFConvert linear prediction coefficients to line spectral frequencies
dsp.LPCToLSPConvert linear prediction coefficients to line spectral pairs
dsp.LPCToRCConvert linear prediction coefficients to reflection coefficients
dsp.LSFToLPCConvert line spectral frequencies to linear prediction coefficients
dsp.LSPToLPCConvert line spectral pairs to linear prediction coefficients
dsp.RCToAutocorrelationConvert reflection coefficients to autocorrelation coefficients
dsp.RCToLPCConvert reflection coefficients to linear prediction coefficients

Spectral Analysis

dsp.SpectrumAnalyzerDisplay frequency spectrum of time-domain signals
dsp.SpectrumEstimatorEstimate power spectrum or power density spectrum
dsp.CrossSpectrumEstimatorEstimate cross-spectral density
dsp.TransferFunctionEstimatorEstimate transfer function
dsp.BurgAREstimatorEstimate of autoregressive (AR) model parameters using Burg method
dsp.BurgSpectrumEstimatorParametric spectral estimate using Burg method

Statistics and Linear Algebra

Measurements and Statistics

dsp.MedianFilterMedian filter
dsp.MovingAverageMoving average
dsp.MovingMaximumMoving maximum
dsp.MovingMinimumMoving minimum
dsp.MovingRMSMoving Root Mean Square
dsp.MovingStandardDeviationMoving standard deviation
dsp.MovingVarianceMoving variance
dsp.AutocorrelatorAutocorrelation sequence
dsp.CrosscorrelatorCross-correlation of two inputs
dsp.MaximumFind maximum value of input or sequence of inputs
dsp.MeanFind mean value of input or sequence of inputs
dsp.MedianMedian value of input
dsp.MinimumFind minimum values of input or sequence of inputs
dsp.RMSRoot mean square of vector elements
dsp.StandardDeviationStandard deviation of input or sequence of inputs
dsp.VarianceVariance of input or sequence of inputs
dsp.HistogramHistogram of input or sequence of inputs
dsp.PeakToPeakPeak-to-peak value
dsp.PeakToRMSPeak-to-root-mean-square value of vector
dsp.PulseMetricsPulse metrics of bilevel waveforms
dsp.StateLevelsState-level estimation for bilevel rectangular waveform
dsp.TransitionMetricsTransition metrics of bilevel waveforms

Array and Matrix Mathematics

dsp.ArrayVectorAdderAdd array to vector along specified dimension
dsp.ArrayVectorDividerDivide array by vector along specified dimension
dsp.ArrayVectorMultiplierMultiply array by vector along specified dimension
dsp.ArrayVectorSubtractorSubtract vector from array along specified dimension
dsp.CumulativeProductCumulative product of channel, column, or row elements
dsp.CumulativeSumCumulative sum of channel, column, or row elements
dsp.NormalizerVector normalization along specified dimension
dsp.HDLComplexToMagnitudeAngleMagnitude and phase angle of complex signal—optimized for HDL code generation

Linear Algebra

dsp.LDLFactorFactor square Hermitian positive definite matrices into components
dsp.LevinsonSolverSolve linear system of equations using Levinson-Durbin recursion
dsp.LowerTriangularSolverSolve lower-triangular matrix equation
dsp.LUFactorFactor square matrix into lower and upper triangular matrices
dsp.UpperTriangularSolverSolve upper-triangular matrix equation

Fixed-Point Design

Fixed-Point Filters

dsp.AllpoleFilterIIR Filter with no zeros
dsp.BiquadFilterIIR filter using biquadratic structures
dsp.DifferentiatorDirect form FIR fullband differentiator filter
dsp.FIRFilterStatic or time-varying FIR filter
dsp.HDLFIRFilterFinite impulse response filter—optimized for HDL code generation
dsp.HighpassFilterFIR or IIR highpass filter
dsp.IIRFilterInfinite impulse response (IIR) filter
dsp.LowpassFilterFIR or IIR lowpass filter
dsp.CICCompensationDecimatorCompensate for CIC decimation filter using FIR decimator
dsp.CICCompensationInterpolatorCompensate for CIC interpolation filter using FIR interpolator
dsp.CICDecimatorDecimate input using Cascaded Integrator-Comb filter
dsp.CICInterpolatorInterpolate signal using Cascaded Integrator-Comb filter
dsp.DigitalDownConverterTranslate digital signal from Intermediate Frequency (IF) band to baseband and decimate it
dsp.DigitalUpConverterInterpolate digital signal and translate it from baseband to Intermediate Frequency (IF) band
dsp.FarrowRateConverterPolynomial sample rate converter with arbitrary conversion factor
dsp.FIRDecimatorPolyphase FIR decimator
dsp.FIRHalfbandDecimatorHalfband decimator
dsp.FIRHalfbandInterpolatorHalfband interpolator
dsp.FIRInterpolatorPolyphase FIR interpolator
dsp.FIRRateConverterSample rate converter
dsp.HDLFIRRateConverterUpsample, filter, and downsample—optimized for HDL code generation
dsp.SubbandAnalysisFilterDecompose signal into high-frequency and low-frequency subbands
dsp.SubbandSynthesisFilterReconstruct signal from high-frequency and low-frequency subbands
dsp.LMSFilterLMS adaptive filter
autoscaleAutomatic dynamic range scaling
denormalizeUndo filter coefficient and gain changes caused by normalize
freqrespestFrequency response estimate via filtering
freqrespoptsOptions for filter frequency response analysis
freqzFrequency response of filter
impzImpulse response of discrete-time filter System object
isstableDetermine whether filter is stable
limitcycleResponse of single-rate, fixed-point IIR filter
noisepsdPower spectral density of filter output due to roundoff noise
noisepsdoptsOptions for running filter output noise PSD
normalizeNormalize filter numerator or feed-forward coefficients
reffilterReference filter for fixed-point or single-precision filter
reorderRearrange sections in SOS filter
scaleScale second-order sections of dsp.BiquadFilter System object
set2intConfigure filter for integer filtering
specifyallFully specify fixed-point filter System object settings
zplaneZ-plane zero-pole plot for discrete-time filter System object

Quantizers

dsp.ScalarQuantizerDecoderConvert each index value into quantized output value
dsp.ScalarQuantizerEncoderAssociate input value with index value of quantization region
dsp.UniformDecoderDecode integer input into floating-point output
dsp.UniformEncoderQuantize and encode floating-point input into integer output
dsp.VectorQuantizerDecoderVector quantizer codeword for given index value
dsp.VectorQuantizerEncoderVector quantization encoding

Code Generation

C Code Generation

codegenGenerate C/C++ code from MATLAB code

DSP Algorithm Acceleration

dspunfoldGenerates a multi-threaded MEX file from a MATLAB function
codegenGenerate C/C++ code from MATLAB code
Was this topic helpful?