주요 콘텐츠

MATLAB 클래스

MATLAB® 클래스에 대한 고정소수점 변환 및 코드 가속화

알고리즘 가속화 또는 고정소수점 변환을 위한 코드에서 값 클래스, 핸들 클래스, System Object를 포함하여 MATLAB 클래스를 사용할 수 있습니다. MATLAB의 값 클래스와 핸들 클래스에 대한 자세한 내용은 핸들 클래스와 값 클래스 비교 항목을 참조하십시오. System object에 대한 자세한 내용은 System object란? 항목을 참조하십시오.

고정소수점 변환 또는 가속화를 위한 MATLAB 코드에서는 다음 작업을 수행할 수 있습니다.

  • MATLAB 코드에 MATLAB 값 클래스 또는 핸들 클래스를 사용할 수 있습니다.

  • MATLAB 값 클래스를 MATLAB 진입점에 대한 입력 인수로 사용할 수 있습니다.

알고리즘 가속화 또는 고정소수점 변환을 위한 MATLAB 코드에 클래스를 사용하는 경우 특정 사용법 관련 참고 및 제한 사항을 알고 있어야 합니다.

클래스

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

도움말 항목

문제 해결

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.