MATLAB: GUI from Simulink File

fileguiinterfacesimulink

Hi all!
It is possible to call a GUI file from a Simulink file? How?
Sérgio

Best Answer

Your GUI consists of two files: mygui.fig and mygui.m If you call the function mygui.m from simulink, your GUI will pop up. Look for user defined function block and make a call to your mygui.m. Take into account that if you do not set the right means for it, your gui will be called every sample time, which means many times. Watch out for that.