Opening a Matlab GUI as a mask of a Simulink block

4 views (last 30 days)
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

Answers (1)

Fangjun Jiang
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().

Categories

Find more on Modeling in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!