how to make "if strcmp(coder.target,'rtw')" true in model simulation.
2 次查看(过去 30 天)
显示 更早的评论
There is an if statement in code which is not becoming true. Please suggest how to make it true.
if strcmp(coder.target,'rtw')
system target file is set as ert.tlc
0 个评论
回答(1 个)
Shreeya
2024-5-10
Hello
coder.target("target") function returns 1 if the code generation target is set to "target", else it return 0. You can use this function directly to check the system target file, instead of employing strcmp. You can also refer to the link below to understand the implementation.
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!