MATLAB: How to use a same variable to functions in Gui

guihandlesMATLABprogrammingvariable

I have used the Gui to build the a programm. I would like when the user to click on menu item A, a number is stored in a variable. When the user click on menu item B, another number is stored in the same variable.
I want to use this variable in other function, in a loop. So, I'm trying that. Since now, I thank you for attention.

Best Answer

I got to solve that problem. I used the function "assignin()" to store a variable and its value. To acess that variable, I use "evalin"