本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。

MATLAB

MATLAB® 类的代码生成

coder.ClassTypeRepresent set of MATLAB classes

示例和操作指南

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.

Specify Objects as Inputs at the Command Line

Specify that an entry-point input is an object of a value class by using the codegen -args option.

Specify Objects as Inputs in the MATLAB Coder App

Define the type of a value class input from a test file or an example input.

概念

用于代码生成的 MATLAB 类定义

在用于进行代码生成的 MATLAB 代码中使用类。

Classes That Support Code Generation

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

MATLAB 代码生成中的 System object

在 MATLAB 生成的代码中使用 System object 的特殊注意事项

Code Generation for Handle Class Destructors

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

疑难解答

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.