필터 지우기
필터 지우기

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;

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by