- 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
17 ビュー (過去 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 件のコメント
回答 (1 件)
Divyanshu
2025 年 1 月 23 日 7:12
編集済み: Divyanshu
2025 年 1 月 23 日 7:15
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Bug Finder Analysis in Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!