How to access the variables form one function to another function in GUI?????

조회 수: 15 (최근 30일)
sonu
sonu 2017년 12월 22일
댓글: Geoff Hayes 2017년 12월 22일

Hai, Kindly help me to solve this issue,Hereby my code is,

function PFM Callback .........
[filename pathname] = uigetfile({'*.txt'},'FILESELCTOR',Multiselect','on')
aa = {'applecongig.txt';'nokiadata.txt'}
if isequal(filename(1),aa(1))&& isequal(filename(2),aa(2))
fullpathname1 = strcat(pathname,filename(1))
fullpathname1 = strcat(pathname,filename(2))
set(handles.text1,'string',fullpathname1)
handles.fullpathname1 = fullpathname1
set(handles.text2,'string',fullpathname2)
handles.fullpathname2 = fullpathname2;
guidata(hObject,handles)
function validate ..........
filename1 = handles.fullpathname1
filename2 = handles.fullpathname2
[y] = check_check[filename1,filename2] 

%%%%%%%%%%% I need to access the fullpathname1,fullpathname2 which I used in first function,so that I can this function ([y] = check_check[filename1,filename2])

  댓글 수: 1
Geoff Hayes
Geoff Hayes 2017년 12월 22일
sonu - what are the inputs to your validate function? How does it get called and does it have access to the handles structure? Please provide more details.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by