이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
MATLAB 클래스
값 클래스, 핸들 클래스, System object를 포함하여 MATLAB 클래스에 대한 코드를 생성할 수 있습니다. 생성된 C 코드에서 MATLAB 클래스는 구조체로 표현됩니다. C++ 코드를 생성하는 경우 코드 생성기의 디폴트 동작은 MATLAB 클래스에 대해 C++ 클래스를 생성하는 것입니다. 코드 생성을 위한 MATLAB 코드에 클래스를 사용하는 경우 특정 사용법 관련 참고 및 제한 사항을 알고 있어야 합니다.
클래스
coder.ClassType | 입력 사양에 허용되는 MATLAB 클래스 집합 표현 |
도움말 항목
코드 생성 기본 사항
- MATLAB 값 클래스에 대한 코드 생성하기
코드 생성을 위한 MATLAB 코드에 값 클래스를 사용합니다. - MATLAB 핸들 클래스 및 System object에 대한 코드 생성하기
코드 생성을 위한 MATLAB 코드에 System object™를 사용합니다. - Generate C++ Code for MATLAB Classes
Generate a C++ class for a value class, handle class, or System object in your MATLAB code.
입력 사양
- Specify Value Class Objects as Inputs
Specify that an entry-point input is an object of a value class. - Define Types of Entry-Point Inputs by Using the MATLAB Coder App
Specify the types of entry-point function inputs using the MATLAB Coder™ app.
사용법 관련 참고 및 제한 사항
- Class Limitations for Code Generation
Adhere to code generation restrictions when you use classes in MATLAB code for code generation. - 코드 생성을 지원하는 클래스
MATLAB 값 클래스, 핸들 클래스, 사용자 정의 System object에 대한 코드를 생성합니다. - System Objects in MATLAB Code Generation
Special considerations for using System objects in code generated from MATLAB. - Code Generation for Handle Class Destructors
Use a handle class destructor in MATLAB code intended for code generation.
문제 해결
Resolve Error: Class Does Not Have Property
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
Troubleshoot error when you use certain types of 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.
언어 제한 사항 해결: 코드 생성 시 객체 배열은 지원되지 않습니다
MATLAB 코드에서 객체로 구성된 배열에 대한 코드 생성 실패 문제를 해결합니다.
