how to make "if strcmp(coder.target,'rtw')" true in model simulation.
이전 댓글 표시
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
답변 (1개)
Shreeya
2024년 5월 10일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Algorithm Design Basics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!