message box in the code

IS it possible to Bold the messages in the message box..?
I want to highlight all the messages in the message box either using color or font weight

4 comentarios

Yash
Yash el 27 de Sept. de 2013
use the properties.
Walter Roberson
Walter Roberson el 27 de Sept. de 2013
Is the message built using msgbox() ?
Val
Val el 27 de Sept. de 2013
yes...Multiple msgs in the same msg box
or any other way to show these messages in my presentation?
message = sprintf(' The name is: %s \n \n Value 1 is : %.1f \n \n Value 2 is : %.1f \n \n A_Output is:%.5f \n \n SR Output is :%.5f \n \nThe Actual output is : %.5f \n\n ',z{1},x,y,A_output,SR,Actual_output);
uiwait(msgbox(message));
Val
Val el 27 de Sept. de 2013
Can U give me the example of msgbox properties.....?

Iniciar sesión para comentar.

 Respuesta aceptada

Image Analyst
Image Analyst el 27 de Sept. de 2013

0 votos

Unfortunately msgbox() doesn't allow formatting options for the text it displays. I've put in a request for this a long time ago. I'd encourage you to send an email to support@mathworks.com asking for it also. In the meantime I think you're stuck writing your own little dialog box.

1 comentario

Val
Val el 30 de Sept. de 2013
Sure i will send an email regarding this. Thank you

Iniciar sesión para comentar.

Más respuestas (2)

Simon
Simon el 27 de Sept. de 2013

0 votos

Hi!
I don't use magbox, but for formatted messages in command window, look at cprintf
Guy Reading
Guy Reading el 10 de Abr. de 2019

0 votos

For anyone reading this still: Image Analyst's answer is incorrect. You can include italics / bold. Please see Jan's answer of this, on a similar question:

2 comentarios

Image Analyst
Image Analyst el 10 de Abr. de 2019
I believe it was correct 6 years ago when I wrote it, but NOW you can do it, as the link, and my attached utility msgboxw() show.
Guy Reading
Guy Reading el 11 de Abr. de 2019
Yes, I noticed the date at which you wrote it, I also noticed that Jan's answer was 2 years earlier than you comment. This being said, perhaps the dating system is incorrect, or I overlooked something else. Apologies for the heavy-handed answer.

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

Val
el 27 de Sept. de 2013

Comentada:

el 11 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by