MATLAB: Do I receive an “Unhandled internal error in guidefunc” message dialog when resizing a uipanel in GUIDE within MATLAB 7.0 (R14)


To reproduce this behavior, perform the following steps:
1) Open GUIDE using:
2) Create a uipanel.
3) Open the Property Inspector and delete the "Title" property value.
4) Use the mouse to resize the uipanel.
You will receive an error dialog stating:
Unhandled internal error in guidefunc.
Error using ==> set
Width and height must be > 0.

Best Answer

  • This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
    We have verified that there is a bug in MATLAB 7.0 (R14) in the way that GUIDE resizes uipanels that have an empty "Title" property.
    Currently, to work around this issue, ensure that the "Title" property of your uipanel is not empty. One method to simulate an empty "Title" property is to use only a single space, and set the "FontSize" property to 1.0.