Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to use data from different callback in another callback in a GUI?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Dennis
am 10 Sep. 2018
to retrieve your filename try:
handles=guidata(hObject);
filename=handles.filename;
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!