MATLAB Classes
You can convert code for MATLAB classes, including value classes, handle classes, and System objects. You must be aware of certain usage notes and limitations when using classes in your MATLAB code that is intended for algorithm acceleration or fixed-point conversion.
Classes
coder.ClassType | Represent set of MATLAB classes acceptable for input specification |
Topics
- 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.
Troubleshooting
Handle Object Limitations for Code Generation
Adhere to code generation restrictions for handle objects.