guide callback function
Mostra commenti meno recenti
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)'
Risposte (1)
Walter Roberson
il 11 Apr 2012
0 voti
5 Commenti
kush
il 11 Apr 2012
Walter Roberson
il 11 Apr 2012
In first function:
handles.key = key;
uidata(gcf, handles);
In second function:
key = handles.key;
kush
il 11 Apr 2012
Jan
il 11 Apr 2012
A typo: "uidata" => "guidata".
Walter Roberson
il 11 Apr 2012
Yes, sorry. guidata() is correct.
Categorie
Scopri di più su Interactive Control and Callbacks in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!