Skip to Main Content Skip to Search
Product Documentation

Supported Functions

Code generation from MATLAB is a restricted subset of the MATLAB language that provides optimizations for:

For detailed information about code generation from MATLAB, refer to the Code Generation from MATLAB and MATLAB Coder documentation. Depending on which feature you wish to use, there are additional required products. For a comprehensive list, see Which Code Generation Feature to Use.

Code generation from MATLAB supports Signal Processing Toolbox functions listed in the table. You must have the DSP System Toolbox software installed to use this feature. To generate C code, you must have the MATLAB Coder™ software. If you have the Fixed-Point Toolbox, you can use fiaccel to generate MEX code for fixed-point applications.

To follow the examples in this documentation:

Function Remarks/Limitations

barthannwin

Window length must be a constant. Expressions or variables are allowed if their values do not change.

bartlett

Window length must be a constant. Expressions or variables are allowed if their values do not change.

besselap

Filter order must be a constant. Expressions or variables are allowed if their values do not change.

bitrevorder

blackman

Window length must be a constant. Expressions or variables are allowed if their values do not change.

blackmanharris

Window length must be a constant. Expressions or variables are allowed if their values do not change.

bohmanwin

Window length must be a constant. Expressions or variables are allowed if their values do not change.

buttap

Filter order must be a constant. Expressions or variables are allowed if their values do not change.

butter

Filter coefficients must be constants. Expressions or variables are allowed if their values do not change.

buttord

All inputs must be constants. Expressions or variables are allowed if their values do not change.

cfirpm

All inputs must be constants. Expressions or variables are allowed if their values do not change.

cheb1ap

All inputs must be constants. Expressions or variables are allowed if their values do not change.

cheb2ap

All inputs must be constants. Expressions or variables are allowed if their values do not change.

cheb1ord

All inputs must be constants. Expressions or variables are allowed if their values do not change.

cheb2ord

All inputs must be constants. Expressions or variables are allowed if their values do not change.

chebwin

All inputs must be constants. Expressions or variables are allowed if their values do not change.

cheby1

All Inputs must be constants. Expressions or variables are allowed if their values do not change.

cheby2

All inputs must be constants. Expressions or variables are allowed if their values do not change.

dct

Length of transform dimension must be a power of two. If specified, the pad or truncation value must be constant. Expressions or variables are allowed if their values do not change.

downsample

dpss

All inputs must be constants. Expressions or variables are allowed if their values do not change.

ellip

Inputs must be constant. Expressions or variables are allowed if their values do not change.

ellipap

All inputs must be constants. Expressions or variables are allowed if their values do not change.

ellipord

All inputs must be constants. Expressions or variables are allowed if their values do not change.

filtfilt

Filter coefficients must be constants. Expressions or variables are allowed if their values do not change.

fir1

All inputs must be constants. Expressions or variables are allowed if their values do not change.

fir2

All inputs must be constants. Expressions or variables are allowed if their values do not change.

fircls

All inputs must be constants. Expressions or variables are allowed if their values do not change.

fircls1

All inputs must be constants. Expressions or variables are allowed if their values do not change.

firls

All inputs must be constants. Expressions or variables are allowed if their values do not change.

firpm

All inputs must be constants. Expressions or variables are allowed if their values do not change.

firpmord

All inputs must be constants. Expressions or variables are allowed if their values do not change.

firrcos

All inputs must be constants. Expressions or variables are allowed if their values do not change.

flattopwin

All inputs must be constants. Expressions or variables are allowed if their values do not change.

freqz

freqz with no output arguments produces a plot only when the function call terminates in a semicolon. See freqz With No Output Arguments.

gaussfir

All inputs must be constant. Expressions or variables are allowed if their values do not change.

gausswin

All inputs must be constant. Expressions or variables are allowed if their values do not change.

hamming

All inputs must be constant. Expressions or variables are allowed if their values do not change.

hann

All inputs must be constant. Expressions or variables are allowed if their values do not change.

idct

Length of transform dimension must be a power of two. If specified, the pad or truncation value must be constant. Expressions or variables are allowed if their values do not change.

intfilt

All inputs must be constant. Expressions or variables are allowed if their values do not change.

kaiser

All inputs must be constant. Expressions or variables are allowed if their values do not change.

kaiserord

levinson

If specified, the order of recursion must be a constant. Expressions or variables are allowed if their values do not change.

maxflat

All inputs must be constant. Expressions or variables are allowed if their values do not change.

nuttallwin

All inputs must be constant. Expressions or variables are allowed if their values do not change.

parzenwin

All inputs must be constant. Expressions or variables are allowed if their values do not change.

rectwin

All inputs must be constant. Expressions or variables are allowed if their values do not change.

resample

The upsampling and downsampling factors must be specified as constants. Expressions or variables are allowed if their values do not change.

sgolay

All inputs must be constant. Expressions or variables are allowed if their values do not change.

sosfilt

taylorwin

All inputs must be constant. Expressions or variables are allowed if their values do not change.

triang

All inputs must be constant. Expressions or variables are allowed if their values do not change.

tukeywin

All inputs must be constant. Expressions or variables are allowed if their values do not change.

upfirdn

  • Filter coefficients, upsampling factor, and downsampling factor must be constants. Expressions or variables are allowed if their values do not change.

  • Variable-size inputs are not supported.

upsample

Either declare input n as constant, or use the assert function in the calling function to set upper bounds for n. For example,

assert(n<10)

xcorr

yulewalk

If specified, the order of recursion must be a constant. Expressions or variables are allowed if their values do not change.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS