Contenido principal

MATLAB Classes

HLS code generation for MATLAB® classes

You can generate code for MATLAB classes, including value classes, handle classes, and System object™. Your class can have multiple methods and properties and can inherit from multiple classes. MATLAB classes are converted to C++ classes in the generated HLS code.

Topics

Code Generation Basics

Usage Notes and Limitations

Troubleshooting

Handle Object Limitations for Code Generation

Adhere to code generation restrictions for handle objects.

Class Does Not Have Property

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

Passing by Reference Not Supported for Some Properties

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

Work Around Language Limitation: Code Generation Does Not Support Object Arrays

Troubleshoot code generation failure for arrays of objects in your MATLAB code.