Opening a Matlab GUI as a mask of a Simulink block

3 ビュー (過去 30 日間)
Malte Otten
Malte Otten 2019 年 10 月 21 日
回答済み: Fangjun Jiang 2019 年 10 月 21 日
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

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2019 年 10 月 21 日
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().

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by