How do you get multiple lines in a GUI?
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to create a GUI that has multiple lines before the actual choices. Example being that the menu box says
Hello, I am you menu box.
I will guide you through this proccess.
Choice 1 - Yes
Choice 2 - No
Choice 3 - Cancel
How could I do something like that?
0 个评论
采纳的回答
Image Analyst
2013-4-25
Try this:
prompt = sprintf('Hello, I am your menu.\nI will guide you through this proccess.');
chosenButton = menu(prompt, 'Choice 1 - Yes',...
'Choice 2 - No', 'Choice 3 - Cancel')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!