matlab GUI/UICONTROL display text and numeric data in figure

8 views (last 30 days)
I want to create a figure named 'Data' and have it display numeric data and text in it like below. also I want a quit button on the button right corner. Menu is not required but I'd love to know how to manipulate that as well. Is something like this possible to approach? How do I approach to the result I wanted
----- Choose a color -----
1) Red
2) Blue
3) Green
Quit

Answers (1)

ES
ES on 15 Mar 2017
You can create a MATLAB Figure.
The drop Down can be modelled using a popup menu.
If you need an example, you can type guide in MATLAB command window.
The third example has the popupmenu and buttons.
Please note: Your requirement is simple, so you can also consider using inputdlg
doc inputdlg

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!