Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to open a file repeteadly with pushbutton in GUI?

1 visualización (últimos 30 días)
serhat tekebas
serhat tekebas el 11 de Nov. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
serhat tekebas
serhat tekebas el 11 de Nov. de 2018
ı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 el 11 de Nov. de 2018
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.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by