Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

message box in the code

Asked by Val

Val (view profile)

on 27 Sep 2013
Latest activity Commented on by Val

Val (view profile)

on 30 Sep 2013

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 Comments

Walter Roberson

Walter Roberson (view profile)

on 27 Sep 2013

Is the message built using msgbox() ?

Val

Val (view profile)

on 27 Sep 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 (view profile)

on 27 Sep 2013

Can U give me the example of msgbox properties.....?

Val

Val (view profile)

Products

No products are associated with this question.

2 Answers

Answer by Image Analyst

Image Analyst (view profile)

on 27 Sep 2013
Accepted answer

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 Comment

Val

Val (view profile)

on 30 Sep 2013

Sure i will send an email regarding this. Thank you

Image Analyst

Image Analyst (view profile)

Answer by Simon

Simon (view profile)

on 27 Sep 2013

Hi!

I don't use magbox, but for formatted messages in command window, look at cprintf

0 Comments

Simon

Simon (view profile)

Contact us