guide callback function
Afficher commentaires plus anciens
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)'
Réponses (1)
Walter Roberson
le 11 Avr 2012
0 votes
5 commentaires
kush
le 11 Avr 2012
Walter Roberson
le 11 Avr 2012
In first function:
handles.key = key;
uidata(gcf, handles);
In second function:
key = handles.key;
kush
le 11 Avr 2012
Jan
le 11 Avr 2012
A typo: "uidata" => "guidata".
Walter Roberson
le 11 Avr 2012
Yes, sorry. guidata() is correct.
Catégories
En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!