guide callback function
Mostrar comentarios más antiguos
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)'
Respuestas (1)
Walter Roberson
el 11 de Abr. de 2012
0 votos
5 comentarios
kush
el 11 de Abr. de 2012
Walter Roberson
el 11 de Abr. de 2012
In first function:
handles.key = key;
uidata(gcf, handles);
In second function:
key = handles.key;
kush
el 11 de Abr. de 2012
Jan
el 11 de Abr. de 2012
A typo: "uidata" => "guidata".
Walter Roberson
el 11 de Abr. de 2012
Yes, sorry. guidata() is correct.
Categorías
Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!