Why is "Navigate to C/C++" greyed out?
16 ビュー (過去 30 日間)
古いコメントを表示
I am trying to use the Code Perspective to analyse where certain variables within my Simulink block diagram are located in the resulting C code. I can succesfully click on code line numbers in the C code panel and Simulink navigates to the corresponding Simulink blocks.
Unfortunately, the reverse does not seem to be possible. When I right-click on a block and go to C/C++ Code > Navigate to C/C++, this option is greyed out.
Does anyone know why this happens and how I can enable it?
1 件のコメント
採用された回答
Rajanya
2025 年 2 月 3 日 6:42
I was able to reproduce this issue. This arises when the model is not configured to map to code.
Checking the 'Model-to-Code' option under Configuration Parameters > Code Generation > Report > Advanced Parameters resolves the issue, enabling the 'Navigate to C/C++ code' option.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1824983/image.png)
Hope this answers your question. Thanks!
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!