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.
Play to sound card | |
Convert coupled allpass filter to transfer function form | |
Convert coupled allpass lattice to transfer function form | |
Multirate FIR filter design | |
Adaptive lattice filter | |
Compute output, error and coefficients using affine projection (AP) Algorithm | |
Single section or cascaded allpass filter | |
IIR Filter with no zeros | |
Analytic signals of discrete-time inputs | |
Display vectors or arrays | |
Add array to vector along specified dimension | |
Divide array by vector along specified dimension | |
Multiply array by vector along specified dimension | |
Subtract vector from array along specified dimension | |
FIFO buffer | |
Stream from audio file | |
Stream to audio file | |
Autocorrelation sequence | |
Read data from binary file | |
Write data to binary files | |
IIR filter using biquadratic structures | |
Compute output, error, and weights using block LMS adaptive algorithm | |
(To be removed) Estimate of autoregressive (AR) model parameters using Burg method | |
(To be removed) Parametric spectral estimate using Burg method | |
(To be removed) Convert cepstral coefficients to linear prediction coefficients | |
Polyphase FFT analysis filter bank | |
Polyphase FFT synthesis filter bank | |
Compensate for CIC decimation filter using FIR decimator | |
Compensate for CIC interpolation filter using FIR interpolator | |
Decimate signal using cascaded integrator-comb (CIC) filter | |
Interpolate signal using cascaded integrator-comb filter | |
Generate colored noise signal | |
Extract a frequency subband using a one-sided (complex) bandpass decimator | |
Convolution of two signals | |
Count up or down through specified range of numbers | |
Cross-correlation of two inputs | |
Estimate cross-spectral density | |
Cumulative product of channel, column, or row elements | |
Cumulative sum of channel, column, or row elements | |
Block DC component (offset) from input signal | |
(To be removed) Discrete cosine transform (DCT) | |
Delay input signal by fixed samples | |
Rebuffer sequence of inputs with one-sample shift | |
Direct form FIR fullband differentiator filter | |
Translate digital signal from intermediate frequency (IF) band to baseband and decimate it | |
Interpolate digital signal and translate it from baseband to IF band | |
Polynomial sample rate converter with arbitrary conversion factor | |
Fast transversal least-squares FIR adaptive filter | |
Discrete Fourier transform | |
Create cascade of filter System objects | |
Filtered XLMS filter | |
Polyphase FIR decimator | |
Static or time-varying FIR filter | |
Halfband decimator | |
Halfband interpolator | |
Polyphase FIR interpolator | |
Sample rate converter | |
Compute output, error, and coefficients using frequency-domain FIR adaptive filter | |
Filter input signal in frequency domain | |
Filter outliers using Hampel identifier | |
FIR or IIR highpass filter | |
(To be removed) Histogram of input or sequence of inputs | |
(To be removed) Inverse discrete cosine transform (IDCT) | |
Inverse discrete Fourier transform (IDFT) | |
Infinite impulse response (IIR) filter | |
Decimate by factor of two using polyphase IIR | |
Interpolate by a factor of two using polyphase IIR | |
Linear or polyphase FIR interpolation | |
Inverse short-time FFT | |
Estimate system measurements and states using Kalman filter | |
Factor square Hermitian positive definite matrices into components | |
Solve linear system of equations using Levinson-Durbin recursion | |
Compute output, error, and weights of LMS adaptive filter | |
Solve lower-triangular matrix equation | |
FIR or IIR lowpass filter | |
(To be removed) Convert linear prediction coefficients to autocorrelation coefficients | |
(To be removed) Convert linear prediction coefficients to cepstral coefficients | |
(To be removed) Convert linear prediction coefficients to line spectral frequencies | |
(To be removed) Convert linear prediction coefficients to line spectral pairs | |
(To be removed) Convert linear prediction coefficients to reflection coefficients | |
(To be removed) Convert line spectral frequencies to linear prediction coefficients | |
(To be removed) Convert line spectral pairs to linear prediction coefficients | |
Factor square matrix into lower and upper triangular matrices | |
(To be removed) Find maximum value of input or sequence of inputs | |
(To be removed) Find mean value of input or sequence of inputs | |
(To be removed) Median value of input | |
Median filter | |
(To be removed) Find minimum values of input or sequence of inputs | |
Moving average | |
Moving maximum | |
Moving minimum | |
Moving root mean square | |
Moving standard deviation | |
Moving variance | |
Generate real or complex sinusoidal signals | |
(To be removed) Vector normalization along specified dimension | |
(To be removed) Identify peak values in input signal | |
Peak-to-peak value | |
Peak-to-root-mean-square value of vector | |
Extract the unwrapped phase of a complex input | |
Unwrap signal phase | |
(To be removed) Convert reflection coefficients to autocorrelation coefficients | |
(To be removed) Convert reflection coefficients to linear prediction coefficients | |
Compute output, error and coefficients using recursive least squares (RLS) algorithm | |
(To be removed) Root mean square of vector elements | |
Multistage sample rate converter | |
Convert each index value into quantized output value | |
Associate input value with index value of quantization region | |
Import variable from workspace | |
Generate discrete sine wave | |
Display frequency spectrum of time-domain signals | |
Estimate power spectrum or power density spectrum | |
Second-order section biquadratic IIR filter structures | |
(To be removed) Standard deviation of input or sequence of inputs | |
State-level estimation for bilevel rectangular waveform | |
Short-time FFT | |
Decompose signal into high-frequency and low-frequency subbands | |
Reconstruct signal from high-frequency and low-frequency subbands | |
Time domain signal display and measurement | |
Estimate transfer function | |
Receive UDP packets from the network | |
Send UDP packets to network | |
Solve upper-triangular matrix equation | |
Variable bandwidth FIR filter | |
Variable bandwidth IIR filter | |
Delay input by time-varying fractional number of sample periods | |
Delay input by time-varying integer number of sample periods | |
(To be removed) Variance of input or sequence of inputs | |
Vector quantizer codeword for given index value | |
Vector quantization encoding | |
Apply window to input signal | |
Detect zero crossings | |
High-resolution FFT of a portion of a spectrum | |
Constrained equiripple FIR filter | |
Equiripple FIR interpolators | |
Parks-McClellan FIR filter | |
Halfband FIR filter design | |
Least P-norm optimal FIR filter | |
Minimum-phase FIR spectral factor | |
Lowpass Nyquist (Lth-band) FIR filter | |
Two-channel FIR filter bank for perfect reconstruction | |
| Interpolated FIR filter design |
IIR comb notch or peak filter | |
Optimal IIR filter with prescribed group-delay | |
Least P-norm optimal IIR filter | |
Constrained least Pth-norm optimal IIR filter | |
Second-order IIR notch filter | |
Second-order IIR peak or resonator filter | |
Transfer function to coupled allpass | |
Transfer function to coupled allpass lattice |