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!