How do you get multiple lines in a GUI?

1 visualización (últimos 30 días)
Wesley
Wesley el 25 de Abr. de 2013
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?

Respuesta aceptada

Image Analyst
Image Analyst el 25 de Abr. de 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 comentario
Wesley
Wesley el 25 de Abr. de 2013
Thanks I figured that out Just after asking the question.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by