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.

1 次查看(过去 30 天)
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

回答(2 个)

Nikhil Sreekumar
Nikhil Sreekumar 2017-4-24
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 2017-4-24
Either use GUIDE, or create the GUI programmatically. For the latter case see: FEX: 41 GUI examples.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by