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?
<<
>>

 採用された回答

Fangjun Jiang
Fangjun Jiang 2018 年 9 月 26 日

0 投票

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.

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by