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 日間)
Nathan Kidd
Nathan Kidd 2018 年 3 月 12 日
回答済み: Image Analyst 2018 年 3 月 13 日
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 Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by