Opening a Matlab GUI as a mask of a Simulink block
4 views (last 30 days)
Show older comments
Hello,
I am currently working on a Simulink model that contains a parameter I'd like to be masked. Because it would be too complex to work out a mask in the Simulink mask-editor, I have crated a GUI using GUIDE. The GUI works perfectly and the Simulink model too. Now I want to link the GUI to the Simulink block. So if I double click on the Simulink block, the GUI opens. I have not found any way to do this. Is there anyone who knows how to do this?
Greetings,Malte
0 Comments
Answers (1)
Fangjun Jiang
on 21 Oct 2019
Block properties, Callbacks, OpenFcn, put in the function that call your GUI. You need to pass the result back to the block using set_param().
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!