フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to open a file repeteadly with pushbutton in GUI?

2 ビュー (過去 30 日間)
serhat tekebas
serhat tekebas 2018 年 11 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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