passing variable from one callback to another callback in gui
Mostrar comentarios más antiguos
function first_Callback(hObject, eventdata, handles)
k=2;
function second_Callback(hObject, eventdata, handles)
g=k+1;
disp(g);
I want to use the k value in first function in second. How do I use it? Please help me...
Respuestas (2)
Rik
el 12 de Mayo de 2019
0 votos
Store the value of k inside your guidata struct.
Image Analyst
el 12 de Mayo de 2019
0 votos
This is a FAQ, so See the FAQ document
Categorías
Más información sobre Display Image 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!