Borrar filtros
Borrar filtros

setting handle for figure -- not working now

1 visualización (últimos 30 días)
hRsInBay
hRsInBay el 20 de En. de 2016
Comentada: Rebecca Krosnick el 22 de En. de 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 comentarios
Walter Roberson
Walter Roberson el 20 de En. de 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 el 22 de En. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by