Error displayed : Undefined function or variable 'Tg'
Mostra commenti meno recenti
Hello,I am familier with C++. I dont how to use Simulink. I have more than 10 variables which need to be declared only once before start of simulation. Simulation time is appro. 500 sec. I declared them in InitFcn in model explorer.
These variable are 3 dimensional and they are declared Globally in InitFcn and interesting thing is that these variable are shown in the workspace. But these variable are not available in 'Embedded Matlab Function' for futher processing.
Error displayed : Undefined function or variable 'Tg'(one of global variable name) Function 'Embedded MATLAB Function' (#18.38.40), line 3, column 14: "Tg"
Also for local variables of 'Embedded Matlab Function' similar error is displayed.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Naming Conventions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!