Documentation

MATLAB Classes

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

Blocks

MATLAB Function Include MATLAB code in models that generate embeddable C code
MATLAB System Include 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.

Concepts

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 Requirements and Limitations for Code Generation

Adhere to code generation restrictions for System objects.

MATLAB Classes in Code Generation Reports

View classes, methods, and properties in code generation reports.

Troubleshooting

Troubleshooting Code Generation Issues with MATLAB Classes

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.

Was this topic helpful?