setting handle for figure -- not working now

1 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2016-1-20
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 2016-1-22
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by