Borrar filtros
Borrar filtros

Info

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

How to use data from different callback in another callback in a GUI?

1 visualización (últimos 30 días)
Ahmed Emam
Ahmed Emam el 10 de Sept. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I Have this problem where i obtain a file name in a callback for a button, however i still need that filename at the click of another button. How do i do this.
handles.filename = uigetfile('*.txt');
filename = handles.filename;
guidata(hObject,handles);
and to get the data i used
get(handles.filename)
as well as
filename = guidata(hObject,handles.filename)
  2 comentarios
Dennis
Dennis el 10 de Sept. de 2018
to retrieve your filename try:
handles=guidata(hObject);
filename=handles.filename;

Respuestas (0)

La pregunta está cerrada.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by