- Add a Numeric edit field to show the output.
- Add a callback for the button i.e Button Pushed function.
- In the button pushed function, retrieve the values of drop-downs, do the necessary calculations and get the desired output.
- Update the value of edit field.
Linking drop down menus
4 ビュー (過去 30 日間)
古いコメントを表示
Hi all, I don't know anything about programming, but I know, that what i want to achieve is simple, so I just want to ask. I already made a GUI that I'm happy with, with two drop down menus that have various selections and a push button that should trigger a calculation to get a desired value in the text box considering the selections made im the drop down. What should be the code to get a certain value in the text box, considering the selections of drop down menus? (I already have the values calculated for every possible combination, so I just need a code for the push button action to work in corelation with choices made in drop down.)
0 件のコメント
回答 (1 件)
Reshma Nerella
2022 年 2 月 3 日
Hi,
Hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!