フィルターのクリア

Info

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

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

1 回表示 (過去 30 日間)
Ahmed Emam
Ahmed Emam 2018 年 9 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Dennis
Dennis 2018 年 9 月 10 日
to retrieve your filename try:
handles=guidata(hObject);
filename=handles.filename;
Ahmed Emam
Ahmed Emam 2018 年 9 月 10 日
thank you!

回答 (0 件)

この質問は閉じられています。

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by