MATLAB: Sharing data among AppDesigner, Functions and Simulink Model.

appdesignerglobal variablesimulink

Hi,
I have been having an issue using AppDesigner, which does call a script .m file, but the variables do not load into the base workspace (which I use in my Simulink model). I have already tried to change the .m file to a function assigning the variables globally. However, they are still not shared with my Simulink application.
How should I design "the system architecture" to use the AppDesigner which calls a .m file and consequently a Simulink model? How can the data be shared among these three applications?
Thank you.

Best Answer

Hi,
You can use assignin function to assign variables in base workspace, also try methods suggested here.
Hope it helps.
Related Question