Info

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

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

1 次查看(过去 30 天)
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)

回答(0 个)

此问题已关闭。

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by