setting handle for figure -- not working now

4 views (last 30 days)
hRsInBay
hRsInBay on 20 Jan 2016
Commented: Rebecca Krosnick on 22 Jan 2016
I developed a program to analyze and plot some data a few years ago which was working fine. I recently upgraded to MatLab R2015b and dust off the program. Now it does not run. I get multiple of errors, but this is the first one:
Reference to non-existent field 'guiHandleText'.
Error in Graph_MEAv6_0>Graph_MEAv6_0_OpeningFcn (line 60)
set(handles.guiHandleText, 'Value', gcf); %set handle for GUI figure
I'm rusty on the specifics of setting handles for figures. Is there something silly and obvious here with regards to differences between MatLab versions? Here is a snippet of the code:
handles.output = hObject;
global ctlData cfoffset tfoffset guiFigH numelec;
guiFigH = gcf;
set(handles.guiHandleText, 'Value', gcf); %set handle for GUI figure
set(handles.versionText, 'String', 'v6.1'); %list version # on GUI
setappdata(guiFigH, 'outpData', {}); %add output data structure
setappdata(guiFigH, 'ExpId', []);
setappdata(guiFigH, 'Expinfo', []);
setappdata(guiFigH, 'dataid', []);
guidata(hObject, handles); %update handles
axes(handles.axes1);
image(imread('vstaLogo.jpg'));
axis off;
numelec = 0; %initialize "numelec"
  2 Comments
Walter Roberson
Walter Roberson on 20 Jan 2016
Where do you assign something to guiHandleText ? If you do not assign anything to it specifically, then did you create your gui using GUIDE and your figure includes an item with Tag guiHandleText ?
Rebecca Krosnick
Rebecca Krosnick on 22 Jan 2016
What do you need guiHandleText for? How is it included in your GUI?
Also, a major update to the graphics system was made in MATLAB R2014b, so this could explain why your GUI is not working the same way as it did in an earlier release.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance 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!