MATLAB: How do you get multiple lines in a GUI

double-lined gui

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?

Best Answer

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')
Related Question