How do you get multiple lines in a GUI?

1 view (last 30 days)
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?

Accepted Answer

Image Analyst
Image Analyst on 25 Apr 2013
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')
  1 Comment
Wesley
Wesley on 25 Apr 2013
Thanks I figured that out Just after asking the question.

Sign in to comment.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices 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!