MATLAB: Empty workspace with GUI

empty workspaceguino variables

Hi to all,
I use the workspace to debug my programs, but I made a program with a GUI now and the workspace stays empty. Why is it empty and how get the variables to appear in the workspace?

Best Answer

Try storing variables in base work space by,
assignin('base','name of variable u want to save','value of variable');
To access variable
v = evalin('base','name of variable u want to access');
% the variable's data is now stored in v.