Opening a Matlab GUI as a mask of a Simulink block
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
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().
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!