MATLAB Answers


can i change the size of msgbox?

Asked by Dimple
on 21 Aug 2013

can i change the size of msgbox and want to know about color options for msgbox


Log in to comment.


1 Answer

Answer by Walter Roberson
on 21 Aug 2013
 Accepted Answer

You can in theory change the size of msgbox by changing the root property 'DefaultFigurePosition' via set(0,'DefaultFigurePosition',[....])

There are no options provided to change msgbox()'s size.

There are no color options for msgbox.


Thank You....

Do not forget to restore the original value of the DefaultFigurePosition afterwards. Otherwise other dialogs might look too strange.

You can create a local copy of msgbox.m and modify it to your needs, e.g. as msgboxXtra.m .

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!