convert variable to global

Hello, I have a gui and all of my variables are named like this: handles.var1,handles.var2....
How can I convert them to be global?

 Accepted Answer

global handles

2 Comments

Where do I write it in the gui?
Azzi Abdelmalek
Azzi Abdelmalek on 18 Apr 2014
Edited: Azzi Abdelmalek on 18 Apr 2014
In the functions where handles.var1 is defined or changed

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!