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 view (last 30 days)
Show older comments
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
0 Comments
Answers (2)
Nikhil Sreekumar
on 24 Apr 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
0 Comments
Jan
on 24 Apr 2017
Either use GUIDE, or create the GUI programmatically. For the latter case see: FEX: 41 GUI examples.
0 Comments
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!