MATLAB: GUI variables not going to workspace

guiload

Hello,
When running a GUI program I cannot get the variables used in the GUI to show up on my workspace. Is there a reson for this?

Best Answer

Those variables are in their own workspace. Use assignin to get them to the base if you need them there:
doc assignin
or less dangerously you could set them to application data using setappdata and then have a function that you call from the command line that retrieves them from application data ( getappdata) so that you lower the risk of overwriting important other variables.
doc setappdata
doc getappdata