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!