how to pass variable through functions in gui?

when i use GUI I was have hard time with something. When I press a push button, a series of calculations are performed. After that, when a different button is pushed, I need to use some of the variables created when the previous button was pushed. Thanks,

Community Treasure Hunt

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

Start Hunting!