How can I force variables that are optimized away to appear in the generated code using Coder products?
显示 更早的评论
I have a model in Simulink for which I would like to generate code. In the generated code, I find that some of the variables are optimized away by the coder. These variables are outputs of a lower-level subsystem and are not used by the higher-level subsystem, but they contain information that is crucial for debugging.
How can I force these variables to appear in the generated code?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Configure Simulation Conditions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!