변수 속성 재할당
C/C++ 코드 생성 시 특정 변수의 경우 초기 할당 후 클래스, 크기 또는 실수/복소수 여부 값을 다르게 하여 재할당할 수 있습니다.
변수는 클래스와 실수/복소수 여부는 같지만 크기는 다른 값을 가질 수 있습니다. 초기 할당의 크기가 상수가 아니면 변수의 크기는 생성 코드에서 동적으로 조정됩니다. 자세한 내용은 Variable-Size Data 항목을 참조하십시오.
변수의 각 항목이 한 가지 유형만 가질 수 있는 경우, 변수의 초기 할당 후에 해당 변수의 유형(클래스, 크기 및 실수/복소수 여부)을 재할당할 수 있습니다. 이 경우 이 변수는 생성 코드에서 복수의 독립 변수를 생성할 수 있도록 이름이 변경됩니다. 자세한 내용은 Reuse the Same Variable with Different Properties 항목을 참조하십시오.
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)