Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to open a file repeteadly with pushbutton in GUI?

1 次查看(过去 30 天)
Hi; I can load a file with a pushbutton. After loading the file my Matlab code gets some certain values from the text file and write them in "static text" to show them to the user. And also it draws a graph also. No problem from start to here. But when I press the pushbutton again to load another file instead of previous one I can not do this. I want "file load pushbutton" erase all "static texts and graphs and variables" and load the new variables and do the same job as previous.Who can solve this problem?
  4 个评论
serhat tekebas
serhat tekebas 2018-11-11
ıt could be the solution. Because when I load the file I use handles struct to use variables at different callbacks.
serhat tekebas
serhat tekebas 2018-11-11
Error using handle.handle/set Invalid or deleted object.
Error in MicSer_HV_Control>loadfromfile1_Callback (line 420) set(handles.nw, 'String', nw);
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in MicSer_HV_Control (line 42) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MicSer_HV_Control('loadfromfile1_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by