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?

can i change the size of msgbox?

Asked by Dimple

Dimple (view profile)

on 21 Aug 2013

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

0 Comments

Dimple

Dimple (view profile)

Tags

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

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.

2 Comments

Dimple

Dimple (view profile)

on 20 Sep 2013

Thank You....

Jan Simon

Jan Simon (view profile)

on 20 Sep 2013

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 .

Walter Roberson

Walter Roberson (view profile)

Contact us