이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
코드 주석
생성된 코드의 가독성과 추적성을 향상시키기 위해 생성 코드에 주석을 삽입하도록 특정 모델 구성 파라미터를 지정할 수 있습니다. 그러면 코드 생성기가 생성 코드의 주석에 모델 파라미터, 블록 이름, 신호 이름, 상태, 함수 및 Stateflow 객체 이름에 대한 텍스트를 포함시킵니다. 생성된 코드를 Simulink® 모델의 요소까지 추적하려면 주석의 하이퍼링크를 클릭하십시오.
도움말 항목
- Configure Code Comments
Configure how code generator inserts comments into generated code.
- Add Custom Comments for Variables in the Generated Code
Add selected data object property values as a comment in the general code above that data object identifier.
- Add Global Comments in the Generated Code
Add global comments to a Simulink model so that the comment text appears where you specify in the generated files.
- Generate Custom Comments from Block Annotations
Add comments to the generated code from annotations connected to blocks.
- Annotate Code for Justifying Polyspace Checks
This example shows how to turn on comments in the generated code that suppress error detection through Polyspace®.
- Include MATLAB Code as Comments in Generated Code
Correlate code generated for a MATLAB Function block with MATLAB® source code.