Main Content

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

가변 크기 데이터

정의 및 코드 생성 시 차이점

MATLAB Function 블록과 MATLAB System 블록에 변수를 가변 크기로 지정할 수 있습니다. 가변 크기는 컴파일할 때 데이터 크기를 알 수 없거나 런타임에 데이터 크기가 변하는 데이터입니다.

블록

MATLAB FunctionInclude MATLAB code in Simulink models
MATLAB SystemInclude System object in model

함수

coder.areUnboundedVariableSizedArraysSupportedCheck if current configuration settings allow unbounded variable-size arrays (R2024a 이후)
coder.varsizeDeclare variable-size data

도움말 항목

문제 해결

Diagnose and Fix Variable-Size Data Errors

Troubleshoot size mismatch and upper bounds detection errors.