How do you get multiple lines in a 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?

 채택된 답변

Image Analyst
Image Analyst 2013년 4월 25일

0 개 추천

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

Wesley
Wesley 2013년 4월 25일
Thanks I figured that out Just after asking the question.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2013년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by