Functions and System Objects Supported for C Code Generation

If you have a MATLAB® Coder™ license, you can generate C and C++ code from MATLAB code that contains DSP System Toolbox™ functions and System objects. For more information about C and C++ code generation from MATLAB code, see the MATLAB Coder documentation. For more information about generating code from System objects, see System Objects in MATLAB Code Generation (MATLAB Coder).

The following DSP System Toolbox functions and System objects are supported for C and C++ code generation from MATLAB code.

An asterisk (*) indicates that the reference page has usage notes and limitations for C/C++ code generation.

audioDeviceWriter*

Play to sound card

ca2tf*

Convert coupled allpass filter to transfer function form

cl2tf*

Convert coupled allpass lattice to transfer function form

designMultirateFIR*

Multirate FIR filter design

dsp.AdaptiveLatticeFilter*

Adaptive lattice filter

dsp.AffineProjectionFilter*

Compute output, error and coefficients using affine projection (AP) Algorithm

dsp.AllpassFilter*

Single section or cascaded allpass filter

dsp.AllpoleFilter*

IIR Filter with no zeros

dsp.AnalyticSignal*

Analytic signals of discrete-time inputs

dsp.ArrayPlot*

Display vectors or arrays

dsp.ArrayVectorAdder*

Add array to vector along specified dimension

dsp.ArrayVectorDivider*

Divide array by vector along specified dimension

dsp.ArrayVectorMultiplier*

Multiply array by vector along specified dimension

dsp.ArrayVectorSubtractor*

Subtract vector from array along specified dimension

dsp.AsyncBuffer*

FIFO buffer

dsp.AudioFileReader*

Stream from audio file

dsp.AudioFileWriter*

Stream to audio file

dsp.Autocorrelator*

Autocorrelation sequence

dsp.BinaryFileReader*

Read data from binary file

dsp.BinaryFileWriter*

Write data to binary files

dsp.BiquadFilter*

IIR filter using biquadratic structures

dsp.BlockLMSFilter*

Compute output, error, and weights using block LMS adaptive algorithm

dsp.BurgAREstimator*

(To be removed) Estimate of autoregressive (AR) model parameters using Burg method

dsp.BurgSpectrumEstimator*

(To be removed) Parametric spectral estimate using Burg method

dsp.CepstralToLPC*

(To be removed) Convert cepstral coefficients to linear prediction coefficients

dsp.Channelizer*

Polyphase FFT analysis filter bank

dsp.ChannelSynthesizer*

Polyphase FFT synthesis filter bank

dsp.CICCompensationDecimator*

Compensate for CIC decimation filter using FIR decimator

dsp.CICCompensationInterpolator*

Compensate for CIC interpolation filter using FIR interpolator

dsp.CICDecimator*

Decimate signal using cascaded integrator-comb (CIC) filter

dsp.CICInterpolator*

Interpolate signal using cascaded integrator-comb filter

dsp.ColoredNoise*

Generate colored noise signal

dsp.ComplexBandpassDecimator*

Extract a frequency subband using a one-sided (complex) bandpass decimator

dsp.Convolver*

Convolution of two signals

dsp.Counter*

Count up or down through specified range of numbers

dsp.Crosscorrelator*

Cross-correlation of two inputs

dsp.CrossSpectrumEstimator*

Estimate cross-spectral density

dsp.CumulativeProduct*

Cumulative product of channel, column, or row elements

dsp.CumulativeSum*

Cumulative sum of channel, column, or row elements

dsp.DCBlocker*

Block DC component (offset) from input signal

dsp.DCT*

(To be removed) Discrete cosine transform (DCT)

dsp.Delay*

Delay input signal by fixed samples

dsp.DelayLine*

Rebuffer sequence of inputs with one-sample shift

dsp.Differentiator*

Direct form FIR fullband differentiator filter

dsp.DigitalDownConverter*

Translate digital signal from intermediate frequency (IF) band to baseband and decimate it

dsp.DigitalUpConverter*

Interpolate digital signal and translate it from baseband to IF band

dsp.FarrowRateConverter*

Polynomial sample rate converter with arbitrary conversion factor

dsp.FastTransversalFilter*

Fast transversal least-squares FIR adaptive filter

dsp.FFT*

Discrete Fourier transform

dsp.FilterCascade*

Create cascade of filter System objects

dsp.FilteredXLMSFilter*

Filtered XLMS filter

dsp.FIRDecimator*

Polyphase FIR decimator

dsp.FIRFilter*

Static or time-varying FIR filter

dsp.FIRHalfbandDecimator*

Halfband decimator

dsp.FIRHalfbandInterpolator*

Halfband interpolator

dsp.FIRInterpolator*

Polyphase FIR interpolator

dsp.FIRRateConverter*

Sample rate converter

dsp.FrequencyDomainAdaptiveFilter*

Compute output, error, and coefficients using frequency-domain FIR adaptive filter

dsp.FrequencyDomainFIRFilter*

Filter input signal in frequency domain

dsp.HampelFilter*

Filter outliers using Hampel identifier

dsp.HighpassFilter*

FIR or IIR highpass filter

dsp.Histogram*

(To be removed) Histogram of input or sequence of inputs

dsp.IDCT*

(To be removed) Inverse discrete cosine transform (IDCT)

dsp.IFFT*

Inverse discrete Fourier transform (IDFT)

dsp.IIRFilter*

Infinite impulse response (IIR) filter

dsp.IIRHalfbandDecimator*

Decimate by factor of two using polyphase IIR

dsp.IIRHalfbandInterpolator*

Interpolate by a factor of two using polyphase IIR

dsp.Interpolator*

Linear or polyphase FIR interpolation

dsp.ISTFT*

Inverse short-time FFT

dsp.KalmanFilter*

Estimate system measurements and states using Kalman filter

dsp.LDLFactor*

Factor square Hermitian positive definite matrices into components

dsp.LevinsonSolver*

Solve linear system of equations using Levinson-Durbin recursion

dsp.LMSFilter*

Compute output, error, and weights of LMS adaptive filter

dsp.LowerTriangularSolver*

Solve lower-triangular matrix equation

dsp.LowpassFilter*

FIR or IIR lowpass filter

dsp.LPCToAutocorrelation*

(To be removed) Convert linear prediction coefficients to autocorrelation coefficients

dsp.LPCToCepstral*

(To be removed) Convert linear prediction coefficients to cepstral coefficients

dsp.LPCToLSF*

(To be removed) Convert linear prediction coefficients to line spectral frequencies

dsp.LPCToLSP*

(To be removed) Convert linear prediction coefficients to line spectral pairs

dsp.LPCToRC*

(To be removed) Convert linear prediction coefficients to reflection coefficients

dsp.LSFToLPC*

(To be removed) Convert line spectral frequencies to linear prediction coefficients

dsp.LSPToLPC*

(To be removed) Convert line spectral pairs to linear prediction coefficients

dsp.LUFactor*

Factor square matrix into lower and upper triangular matrices

dsp.Maximum*

(To be removed) Find maximum value of input or sequence of inputs

dsp.Mean*

(To be removed) Find mean value of input or sequence of inputs

dsp.Median*

(To be removed) Median value of input

dsp.MedianFilter*

Median filter

dsp.Minimum*

(To be removed) Find minimum values of input or sequence of inputs

dsp.MovingAverage*

Moving average

dsp.MovingMaximum*

Moving maximum

dsp.MovingMinimum*

Moving minimum

dsp.MovingRMS*

Moving root mean square

dsp.MovingStandardDeviation*

Moving standard deviation

dsp.MovingVariance*

Moving variance

dsp.NCO*

Generate real or complex sinusoidal signals

dsp.Normalizer*

(To be removed) Vector normalization along specified dimension

dsp.PeakFinder*

(To be removed) Identify peak values in input signal

dsp.PeakToPeak*

Peak-to-peak value

dsp.PeakToRMS*

Peak-to-root-mean-square value of vector

dsp.PhaseExtractor*

Extract the unwrapped phase of a complex input

dsp.PhaseUnwrapper*

Unwrap signal phase

dsp.RCToAutocorrelation*

(To be removed) Convert reflection coefficients to autocorrelation coefficients

dsp.RCToLPC*

(To be removed) Convert reflection coefficients to linear prediction coefficients

dsp.RLSFilter*

Compute output, error and coefficients using recursive least squares (RLS) algorithm

dsp.RMS*

(To be removed) Root mean square of vector elements

dsp.SampleRateConverter*

Multistage sample rate converter

dsp.ScalarQuantizerDecoder*

Convert each index value into quantized output value

dsp.ScalarQuantizerEncoder*

Associate input value with index value of quantization region

dsp.SignalSource*

Import variable from workspace

dsp.SineWave*

Generate discrete sine wave

dsp.SpectrumAnalyzer*

Display frequency spectrum of time-domain signals

dsp.SpectrumEstimator*

Estimate power spectrum or power density spectrum

dsp.StandardDeviation*

(To be removed) Standard deviation of input or sequence of inputs

dsp.StateLevels*

State-level estimation for bilevel rectangular waveform

dsp.STFT

Short-time FFT

dsp.SubbandAnalysisFilter*

Decompose signal into high-frequency and low-frequency subbands

dsp.SubbandSynthesisFilter*

Reconstruct signal from high-frequency and low-frequency subbands

dsp.TimeScope*

Time domain signal display and measurement

dsp.TransferFunctionEstimator*

Estimate transfer function

dsp.UDPReceiver*

Receive UDP packets from the network

dsp.UDPSender*

Send UDP packets to network

dsp.UpperTriangularSolver*

Solve upper-triangular matrix equation

dsp.VariableBandwidthFIRFilter*

Variable bandwidth FIR filter

dsp.VariableBandwidthIIRFilter*

Variable bandwidth IIR filter

dsp.VariableFractionalDelay*

Delay input by time-varying fractional number of sample periods

dsp.VariableIntegerDelay*

Delay input by time-varying integer number of sample periods

dsp.Variance*

(To be removed) Variance of input or sequence of inputs

dsp.VectorQuantizerDecoder*

Vector quantizer codeword for given index value

dsp.VectorQuantizerEncoder*

Vector quantization encoding

dsp.Window*

Apply window to input signal

dsp.ZeroCrossingDetector*

Detect zero crossings

dsp.ZoomFFT *

High-resolution FFT of a portion of a spectrum

firceqrip*

Constrained equiripple FIR filter

fireqint*

Equiripple FIR interpolators

firgr*

Parks-McClellan FIR filter

firhalfband*

Halfband FIR filter design

firlpnorm*

Least P-norm optimal FIR filter

firminphase*

Minimum-phase FIR spectral factor

firnyquist*

Lowpass Nyquist (Lth-band) FIR filter

firpr2chfb*

Two-channel FIR filter bank for perfect reconstruction

ifir*

Interpolated FIR filter design

iircomb*

IIR comb notch or peak filter

iirgrpdelay*

Optimal IIR filter with prescribed group-delay

iirlpnorm*

Least P-norm optimal IIR filter

iirlpnormc*

Constrained least Pth-norm optimal IIR filter

iirnotch*

Second-order IIR notch filter

iirpeak*

Second-order IIR peak or resonator filter

tf2ca*

Transfer function to coupled allpass

tf2cl*

Transfer function to coupled allpass lattice