Azzera filtri
Azzera filtri

how to make "if strcmp(cod​,​'rtw')" true in model simulation.

2 visualizzazioni (ultimi 30 giorni)
There is an if statement in code which is not becoming true. Please suggest how to make it true.
if strcmp(,'rtw')
system target file is set as ert.tlc

Risposte (1)

Shreeya il 10 Mag 2024
Hello"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.


Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by