How do I create an input window (like menu(...)) that has both a string input and a checkbox/dropdown/button input in the same window?

3 views (last 30 days)
I am working on an assignment where I have to ask the user for various bits of info on a car ride and do a calculation at the end. I need to collect the speed of the car, the units of speed, the time the car was driven, the units of time, etc and I would like to collect all of this in one input window. I know I can just use multiple windows but I want to learn how to do things in different ways. Ideally, I would have a input window where there is a string input line for speed, below this are a few buttons for the different units of speed, below this is a string input line for time, below that are some buttons for the units of time, and so on.
Not sure if this is even possible because I'm new to MatLab (just came from C) and I'm still learning.
Thanks!

Answers (1)

Image Analyst
Image Analyst on 13 Mar 2018
You could build it yourself manually, but htat could be tediouis because there are lots of properties to set. It's probably easiest to use App Designer or GUIDE. http://blogs.mathworks.com/videos/category/gui-or-guide/

Categories

Find more on Migrate GUIDE Apps 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!