Why does MATLAB 6.5 (R13) hang when I am creating a GUI using GUIDE?

1 view (last 30 days)
Why does MATLAB 6.5 (R13) hang when I am creating a GUI using GUIDE?
When I use the property inspector to change the 'string' property of my GUI component, MATLAB hangs.
To reproduce the problem, use the following steps:
1) After starting MATLAB, type "guide."
2) When the "GUIDE Quick Start" wizard appears select the third item which is "GUI with Axes and Menu" and wait until the GUIDE screen appears.
3) Enlarge the GUIDE screen and the grid.
4) Select the Popup Menu, which is added in the GUI by default and then right click.
5) Select the Property Inspector item from the context menu.
6) In the Property Inspector proceed down the list of properties until you reach "String". Click on the string icon and open the window containing all the strings.
7) Without making changes, accept the strings by clicking OK button. All MATLAB windows are hung.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This problem has been fixed in MATLAB 6.5.1 (R13SP1). If you are using a previous version, read the following:
This is a bug in MATLAB 6.5 (R13), sometimes causing MATLAB to hang when using the property inspector.
To work around this issue, you can use the following alternative method instead of the property inspector:
Set the UIControl's "String" property during the GUI's OpeningFcn. For instance, if you were using a popup menu, you could use the following code:
function figure1_OpeningFcn(hObject, eventdata, handles, varargin)
% Choose default command line output for untitled1
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% added this line, to set popupmenu's String
set(handles.popupmenu1,'String',{'a';'b';'c';'d'})

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!