How to share variables across GUIs?
Mostra commenti meno recenti
As it said in title,there is a variant Num1 in GUI1, I hope that in GUI2 Num1 can changged, how ? Thank you!
Risposta accettata
Più risposte (1)
Walter Roberson
il 21 Nov 2012
If you used GUIDE, you need to use guidata() on the figure number for GUI2 in order to get GUI2's handle structure in GUI1. Then you can change things in the normal way. For example,
handles2 = guidata(GUI2_figure);
set(handles2.Num1, 'Value', get(handles.Num1, 'Value'))
1 Commento
Lisa Wu
il 21 Nov 2012
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects 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!