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?

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

回答(1 个)

Image Analyst
Image Analyst 2018-3-13
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/

类别

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