MATLAB: How to get the variables into workspace while running GUI

datafunctionguiguideworkspace

I have small functions and scripts inside my GUI. When i run my GUI I cannot see any variables and its datas in my workspace. Therefore my programs are getting error while running GUI. Is there any command that would help me.

Best Answer

There are several things you can do. To see the value of a variable in the workspace, do not write the semicolon, that will present the variable and its value in runtime. You can also declare global variables within your functions.
doc global
for examples and full documentation