이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
가변 크기 데이터
가변 크기 데이터는 컴파일할 때 데이터 크기를 알 수 없거나 런타임에 데이터 크기가 변하는 데이터입니다. 가속화하거나 변환할 MATLAB® 코드에 가변 크기 데이터를 사용하려면 설명된 지침을 따르십시오. 알고리즘 가속화 또는 고정소수점 변환에 사용할 MATLAB 코드에 가변 크기 데이터를 사용할 경우 특정 제한 사항이 적용됩니다.
함수
coder.varsize | Declare variable-size data |
도움말 항목
- Code Generation for Variable-Size Arrays
Variable-size data is data whose size is not known at compile time or whose size can change at run time.
- Define Variable-Size Data for Code Generation
Choose a method for defining variable-size data.
- Control Memory Allocation for Variable-Size Arrays
Control when dynamic memory allocation is used.
- Specify Upper Bounds for Variable-Size Arrays
To avoid dynamic memory allocation, specify upper bounds for a variable-size array.
- Incompatibilities with MATLAB in Variable-Size Support for Code Generation
Sometimes, the results for variable-size data in generated code are different than the results in MATLAB.
- Variable-Sizing Restrictions for Code Generation of Toolbox Functions
Some restrictions for variable-size data apply to multiple toolbox functions.
문제 해결
Diagnose and Fix Variable-Size Data Errors
Troubleshoot size mismatch and upper bounds detection errors.