- Try using 'Model Advisor' app. You can read about Model Advisor for more details.
- Here is an example of using 'Model Advisor': Check your model.
- Manually inspecting the model:
how to remove deadcode or unused code in matlab model
조회 수: 4 (최근 30일)
이전 댓글 표시
Their is one model i have generate the code that model, after that i am done polyspace on that code then their some violation on that code,
According to guideline also I select MISRA C and POLYSPACE in code generation process.
댓글 수: 0
채택된 답변
Divyanshu
2025년 1월 23일
편집: Divyanshu
2025년 1월 23일
Here are some troubleshooting steps to try:
If there are conditional branches in the model, ensure that if a branch is never executed remove it from model.
Also check for blocks which are not connected or executed during simulation, these also result in dead code.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Check Model Compliance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!