필터 지우기
필터 지우기

setting handle for figure -- not working now

조회 수: 1 (최근 30일)
hRsInBay
hRsInBay 2016년 1월 20일
댓글: Rebecca Krosnick 2016년 1월 22일
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