이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
구조체
정의 및 지원되는 구조체 연산
MATLAB Function 블록과 MATLAB System 블록에 변수를 구조체로 정의할 수 있습니다.
블록
MATLAB Function | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
함수
coder.cstructname | Name C structure type in generated code |
도움말 항목
- MATLAB Function 블록의 구조체 만들기
구조체 만들기에 대한 지침을 따릅니다.
- Define Scalar Structures for Code Generation
Adhere to code generation restrictions for scalar structures.
- 코드 생성을 위한 구조체 배열 정의하기
구조체 배열에 대한 코드 생성 제한 사항을 따릅니다.
- Attach Buses to MATLAB Function Blocks
Use structures in a MATLAB Function block.
- Initialize Matrix Using a Nontunable Structure Parameter
Use a nontunable structure parameter input to initialize a matrix output.
- Index Substructures and Fields
Refer to field values individually In a MATLAB Function block.
- Assign Values to Structures and Fields
- Pass Large Structures as Input Parameters
To avoid memory issues, pass large structures by reference.
- 코드 생성을 위한 구조체 정의
코드 생성을 위한 MATLAB® 코드에 구조체를 사용합니다.
- 코드 생성을 위해 허용되는 구조체 작업
코드 생성에 지원되는 구조체 작업을 사용합니다.
- 구조체 입력 및 구조체 출력이 버스 신호와 연결되는 방법
MATLAB Function 블록의 구조체 입력 및 구조체 출력을 버스 신호에 연결합니다.
- MATLAB Function 블록의 구조체 정의 규칙
MATLAB Function 블록에서의 구조체 사용에 대한 제한 사항을 따릅니다.