passing variable from one callback to another callback in gui
Mostra commenti meno recenti
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...
Risposte (2)
Rik
il 12 Mag 2019
0 voti
Store the value of k inside your guidata struct.
Image Analyst
il 12 Mag 2019
0 voti
This is a FAQ, so See the FAQ document
Categorie
Scopri di più su Display Image 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!