MATLAB Answers


message box in the code

Asked by Val
on 27 Sep 2013
Latest activity Commented on by Val
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


Show 1 older comment

Is the message built using msgbox() ?

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);
on 27 Sep 2013

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

Log in to comment.


No tags are associated with this question.

2 Answers

Answer by Image Analyst
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 asking for it also. In the meantime I think you're stuck writing your own little dialog box.

  1 Comment

on 30 Sep 2013

Sure i will send an email regarding this. Thank you

Log in to comment.

Answer by Simon
on 27 Sep 2013


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


Log in to comment.

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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!