Effacer les filtres
Effacer les filtres

I need help with my GUI, getting the pop-up menu to relate to a radio button and then a user input to convert a measurement.

3 vues (au cours des 30 derniers jours)
Hello gurus,
So I've written a conversion program that works well as a text-based user interface, but now we're required to convert it to a GUI. I've never worked with them before and am overseas so I'm missing the classes on this topic.
My design has a pop-up menu that the user selects the unit type to be converted; Inches/Cm, Miles/Km, Gallons/Litres, etc. Then radio buttons to define whether they are converting to Metric or Imperial. Finally, the Input box for their measurement to be converted.
I'm not sure where to put the code so that these all link together and that the type selected from the pop-up and radio options changes the unit displayed in static text.
Hopefully I can get this done and enjoy Vietnam rather than pull my hair out in the hotel half the days!
Thanks

Réponses (2)

Nikhil Sreekumar
Nikhil Sreekumar le 24 Avr 2017
Hi James,
Have you checked GUIDE in MATLAB? Please have a look at the below documentation example. This could give you a fair idea about using GUIDE for your application:
Hope this helps
Thanks,
Nikhil

Jan
Jan le 24 Avr 2017
Either use GUIDE, or create the GUI programmatically. For the latter case see: FEX: 41 GUI examples.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by