SIMULINK not recognizing Variables defined in Annotation box

I'm using what should be a working example for a MATLAB/SIMULINK toolbox. However, variables written in an annotation box are bot recognized by the Simulink blocks (i.e. getting the "Undefined functions or variables" error). I'm using MATLAB 2018a, and I'm wondering if this is due to the version or else how can I resolve this issue so variables can be defined in the annotation?
<<
>>

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 26 Sep. 2018

0 Stimmen

Your assignment needs to be put in the "ClickFcn" box or check that "Use annotation text as Click callback". Also, it does require a click. Check if the variables are assigned in the workspace.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by