简体   繁体   中英

Mablab calling one figure from another figure

There are two figures, assume figure 1 and figure 2. In figure 1,there is a button 'Next'. When 'Next' is clicked , figure 2 is expected to appear, this works fine by using the line of code open('TrafficSignConfig.fig');.

But when i click on exit button in figure 2, this button throws an error message.

'??? Attempt to reference field of non-structure array.

Error in ==> report_search>exit_Callback at 289 delete(handles.figure1);

Error in ==> gui_mainfcn at 96 feval(varargin{:});

Error in ==> report_search at 42 gui_mainfcn(gui_State, varargin{:});

Error in ==> @(hObject,eventdata)report_search('exit_Callback',hObject,eventdata,guidata(hObject)) '

Can any one please help me on this. i tried to search, but i could get any answers that i understand. Please suggest me an easy method

Got an answer, it works fine.

Please refer the link below if needed,

http://blogs.mathworks.com/videos/2005/10/03/guide-video-part-two/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM