Contenu principal

Simulink Design Verifier Limitations for MATLAB for Code Generation

Unsupported MATLAB for Code Generation Features

Simulink® Design Verifier™ does not support the following features of the MATLAB Function block in the Simulink software and MATLAB® functions in the Stateflow® software. Avoid using these unsupported features in models that you analyze with Simulink Design Verifier.

Not SupportedDescription

Characters

The software does not support characters, which MATLAB for code generation allows.

Extrinsic functions

The software supports extrinsic functions only when they do not affect the output of a MATLAB function.

Support Limitations for MATLAB for Code Generation Library Functions

Simulink Design Verifier provides various levels of support for MATLAB for code generation library functions.

If your model contains unsupported functions, you can turn on automatic stubbing, which considers the interface of the unsupported functions, but not their behavior.

To achieve 100% coverage, avoid using unsupported MATLAB library functions in models that you analyze.

The following table lists Simulink Design Verifier support for categories of library functions in code generation from MATLAB:

  • Software supports functions in that category.

  • Software does not support functions in that category.

  • Software supports the function in that category with limitations as specified.

For the complete listing of available functions, see Functions and Objects Supported for C/C++ Code Generation.

Function CategorySupport Notes
Aerospace Toolbox functionsNot supported.
Arithmetic operator functionsSupported.
Bit-wise operation functionsSupported
Casting functionsSupported with following limitations:
 charNot supported.
 typecastNot supported.
Communications Toolbox™ functionsNot supported.
Complex number functionsSupported.
Computer Vision Toolbox™ functionsNot supported.
Data type functionsSupported
Derivative and Integral functionsNot supported.
Discrete math functionsSupported.
Error handling functionsSupported with the following limitations:
 assertSupported, but does not behave like a Proof Objective block.
Exponential functionsSupported.
Filtering and convolution functionsSupported.
Fixed-Point Designer™ functionsSupported.
Histogram functionsNot supported.
Image Processing Toolbox™ functionsNot supported.
Input and output functionsSupported.
Interpolation and computation geometrySupported.
Linear algebraNot supported.
Logical operator functionsSupported.
MATLAB Compiler™ functionsNot supported.
Matrix and array functionsSupported with the following limitations:
 invhilbNot supported.
Nested functionsSupported.
Non-linear numerical methodsNot supported.
Polynomial functionsNot supported.
Relational operations functionsSupported.
Rounding and remainder functionsSupported.
Policy blockNot supported.
RL Agent blockNot supported.
Set functionsSupported.
Signal Processing functions in MATLABNot supported.
Signal Processing Toolbox™ functionsNot supported.
Special valuesSupported.
Specialized mathNot supported.
Statistical functionsSupported.
String functionsSupported with the following limitations:
 charNot supported.
 ischarNot supported.
Trigonometric functionsSupported.

See Also

|

Topics