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.)

답변 (1개)

Reshma Nerella
Reshma Nerella 2022년 2월 3일

0 개 추천

Hi,
  1. Add a Numeric edit field to show the output.
  2. Add a callback for the button i.e Button Pushed function.
  3. In the button pushed function, retrieve the values of drop-downs, do the necessary calculations and get the desired output.
  4. Update the value of edit field.
Hope this helps!

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

2022년 1월 31일

답변:

2022년 2월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by