MATLAB 클래스
알고리즘 가속화 또는 고정소수점 변환을 위한 코드에서 값 클래스, 핸들 클래스, System Object를 포함하여 MATLAB 클래스를 사용할 수 있습니다. MATLAB의 값 클래스와 핸들 클래스에 대한 자세한 내용은 핸들 클래스와 값 클래스 비교 항목을 참조하십시오. System object에 대한 자세한 내용은 System object란? 항목을 참조하십시오.
고정소수점 변환 또는 가속화를 위한 MATLAB 코드에서는 다음 작업을 수행할 수 있습니다.
MATLAB 코드에 MATLAB 값 클래스 또는 핸들 클래스를 사용할 수 있습니다.
MATLAB 값 클래스를 MATLAB 진입점에 대한 입력 인수로 사용할 수 있습니다.
알고리즘 가속화 또는 고정소수점 변환을 위한 MATLAB 코드에 클래스를 사용하는 경우 특정 사용법 관련 참고 및 제한 사항을 알고 있어야 합니다.
클래스
coder.ClassType | 입력 사양에 허용되는 MATLAB 클래스 집합 표현 |
도움말 항목
- Class Limitations for Code Generation (MATLAB Coder)
Adhere to code generation restrictions when you use classes in MATLAB code for code generation.
- Define Class Properties for Code Generation (MATLAB Coder)
Define the properties of value and handle classes in MATLAB code for code generation.
- System Objects in MATLAB Code Generation (MATLAB Coder)
Special considerations for using System objects in code generated from MATLAB.
- Code Generation for Handle Class Destructors (MATLAB Coder)
Use a handle class destructor in MATLAB code intended for code generation.
- MATLAB 값 클래스에 대한 코드 생성하기 (MATLAB Coder)
코드 생성을 위한 MATLAB 코드에 값 클래스를 사용합니다.
- Generate Code for MATLAB Functions That Use Handle Classes (MATLAB Coder)
Use a handle class in MATLAB code intended for code generation.
- Generate Code for MATLAB Functions That Use System Objects (MATLAB Coder)
Use a System object™ in MATLAB code for code generation.
- Generate Code for MATLAB Functions That Use Singleton Classes (MATLAB Coder)
Use a singleton handle class in MATLAB code for code generation.
- Specify Objects as Inputs
Use the
fiaccel-argsoption to specify the type of a value class input.
문제 해결
Resolve Error: Handle Object Referenced by Persistent Variable (MATLAB Coder)
Troubleshoot error when using a persistent handle object.
Resolve Error: Nontunable Property Cannot Be Defined by Subscripted Assignment (MATLAB Coder)
Troubleshoot code generation failure when a System object uses a structure.
Resolve Error: Class Properties Must Be Fully Defined Before Use (MATLAB Coder)
Troubleshoot code generation error when class properties are not defined before use.
Resolve Error: Cannot Reference Handle Object Outside of Loop (MATLAB Coder)
Troubleshoot error when creating or allocating a handle object inside a
for-loop.
Resolve Error: Class Does Not Have Property (MATLAB Coder)
Troubleshoot issues when you assign a value to a property of a handle class that is returned by a method.
Resolve Error: Passing by Reference Not Supported for Some Properties (MATLAB Coder)
Troubleshoot error when you use certain types of properties with
coder.ref, coder.rref, or
coder.wref.
Resolve Error: coder.varsize Not Supported for Class Properties (MATLAB Coder)
Troubleshoot code generation error when using coder.varsize
with properties of a MATLAB class.