I have a script file (MainProgram.m) that is the main part of my program. Upon execution, this script file then calls many functions within itself to perform the necessary tasks and leaves me with some plots, etc. and a set of variables in the Workspace. Everything is working as it should.
Now, I'm trying to incorporate a GUI using guide, but am having some trouble "seeing" any of the variables in the Workspace. Essentially, I want someone to execute MainProgram.m when they click a certain button in the GUI and then I want ALL the variables that are left after MainProgram.m runs to be avaiable for subsequent button clicks in the GUI (which essentially, will look-up, test, etc. the data that comes from MainProgram.m).
Can anyone offer any advice? Thanks in advance.