How to use variables in between GUI function?
12 views (last 30 days)
Show older comments
chlor thanks on 25 Jul 2016
Commented: chlor thanks on 27 Jul 2016
I am very new to GUI and so far for my understanding is that you can only put a tag's name behind handles. to communicate between different functions. For example, one uses axes(handles.axes1) inside a push button function.
For my case, I have several functions inside a GUI and there is one variable that is produced by one function, which is not defined previously when I made the GUI layout by GUIDE, it is only produced when the code is run and I would like to use it later in a pushbutton function, in this case, what should I do to make this variable outside of its mother function in order to be used in my pushbutton function?
Sorry if I sound confusing.
Any discussion/help is welcomed! Thanks!
Azzi Abdelmalek on 25 Jul 2016
To call the variable
More Answers (0)
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!