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');
If you want to access data that is in base workspace in your gui functions, use
v = evalin('base','name of variable u want to access'); % the variable's data is now stored in v. If u want to save data of ur gui work space to base, use
Best Answer