Main Content

MATLAB 클래스

MATLAB® 클래스에 대한 코드 생성

값 클래스, 핸들 클래스, System object를 포함하여 MATLAB 클래스에 대한 코드를 생성할 수 있습니다. 생성된 C 코드에서 MATLAB 클래스는 구조체로 표현됩니다. C++ 코드를 생성하는 경우 코드 생성기의 디폴트 동작은 MATLAB 클래스에 대해 C++ 클래스를 생성하는 것입니다. 코드 생성을 위한 MATLAB 코드에 클래스를 사용하는 경우 특정 사용법 관련 참고 및 제한 사항을 알고 있어야 합니다.

클래스

coder.ClassType입력 사양에 허용되는 MATLAB 클래스 집합 표현

도움말 항목

코드 생성 기본 사항

입력 사양

사용법 관련 참고 및 제한 사항

문제 해결

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.

Resolve Error: Code Generator Failed to Produce C++ Destructor for MATLAB Class

Troubleshoot generation of standalone code for C++ destructor of a MATLAB class.

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

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