Main Content

MATLAB

用于代码生成的 MATLAB® 类的定义和使用,以及不同之处

要为 MATLAB 类生成高效的独立代码,必须按照与在 MATLAB 环境中运行代码时不同的方式来使用类。

模块

MATLAB FunctionSimulink 模型中包含 MATLAB 代码
MATLAB System在模型中包含 System object

主题

疑难解答

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.