이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
셀형 배열
코드 생성기는 셀형 배열을 동종 또는 이종으로 분류합니다. 동종 셀형 배열은 생성된 코드에서 배열로 표현됩니다. 이종 셀형 배열은 생성된 코드에서 구조체로 표현됩니다. 셀형 배열을 분류하기 위해 코드 생성기는 요소의 속성(클래스, 크기, 실수/복소수 여부)과 기타 인자(예: 프로그램에서 셀형 배열을 사용하는 방식)를 고려합니다. Code Generation for Cell Arrays 항목을 참조하십시오.
함수
coder.cstructname | Name C structure type in generated code |
coder.varsize | Declare variable-size data |
도움말 항목
- Code Generation for Cell Arrays
The classification as homogeneous or heterogeneous determines how the cell array is represented in the generated code and how you can use the cell array.
- Control Whether a Cell Array Is Variable-Size
Create variable-size cell arrays or force cell arrays to be variable-size.
- Cell Array Limitations for Code Generation
Adhere to code generation restrictions for cell arrays.
문제 해결
Resolve Issue: Cell Array Elements Must Be Fully Defined Before Use
Troubleshoot code generation errors when cell array elements are not defined before use.