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!