구조체
구조체 정의 및 지원되는 연산
MATLAB Function 블록과 MATLAB System 블록에 변수를 구조체로 정의할 수 있습니다.
블록
| MATLAB Function | Simulink 모델에 MATLAB 코드 포함 |
| MATLAB System | Include System object in model |
함수
coder.cstructname | Name generated or externally defined structure type in C or C++ code |
도움말 항목
- MATLAB Function 블록의 구조체 만들기
구조체 만들기에 대한 지침을 따릅니다.
- Initialize Matrix Using a Nontunable Structure Parameter
Use a nontunable structure parameter input to initialize a matrix output.
- Attach Buses to MATLAB Function Blocks
Use structures in a MATLAB Function block.
- Structure Limitations for Code Generation (MATLAB Coder)
Adhere to code generation restrictions for structures.
- 구조체형 배열에 대한 코드 생성하기 (MATLAB Coder)
이 예제에서는 코드 생성에 적합하도록 구조체형 배열을 사용하는 MATLAB® 함수를 작성하는 방법을 보여줍니다.