Azzera filtri
Azzera filtri

setting handle for figure -- not working now

1 visualizzazione (ultimi 30 giorni)
hRsInBay
hRsInBay il 20 Gen 2016
Commentato: Rebecca Krosnick il 22 Gen 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 Commenti
Walter Roberson
Walter Roberson il 20 Gen 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 il 22 Gen 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by