guide callback function
이전 댓글 표시
how to use a veriable from one matlab callback function into another
i am defining veriable 'key' in func
'function scramblekey_Callback(hObject, eventdata, handles)'
& want to use it into func
'function embedwatermark_Callback(hObject, eventdata, handles)'
답변 (1개)
Walter Roberson
2012년 4월 11일
0 개 추천
댓글 수: 5
kush
2012년 4월 11일
Walter Roberson
2012년 4월 11일
In first function:
handles.key = key;
uidata(gcf, handles);
In second function:
key = handles.key;
kush
2012년 4월 11일
Jan
2012년 4월 11일
A typo: "uidata" => "guidata".
Walter Roberson
2012년 4월 11일
Yes, sorry. guidata() is correct.
카테고리
도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!