This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

MATLAB Classes

Definition and use of MATLAB® classes, differences for code generation


MATLAB FunctionInclude MATLAB code in models that generate embeddable C code
MATLAB SystemInclude System object in model

Examples and How To

Generate Code for MATLAB Value Classes

Use a value class in MATLAB code intended for code generation.

Generate Code for MATLAB Handle Classes and System Objects

Use your System object™ in MATLAB code intended for code generation.


MATLAB Classes Definition for Code Generation

Use classes in MATLAB code intended for code generation.

Classes That Support Code Generation

Generate code for MATLAB value and handle classes and user-defined System objects.

System Objects in MATLAB Code Generation

Special considerations for using System objects in code generated from MATLAB

Code Generation for Handle Class Destructors

Use a handle class destructor in MATLAB code intended for code generation.


Class Does Not Have Property

Troubleshoot issues with assignment of a property of a handle class.

Handle Object Limitations for Code Generation

Adhere to code generation restrictions for handle objects.

Passing By Reference Not Supported for Some Properties

You cannot use certain properties with coder.ref, coder.rref, or coder.wref.