MATLAB: How to get calculations in workspace from GUI

gui

Hi, I have developed a GUI where user will give inputs. The complete calculation is iterated till 2400 seconds. Now I get only final output. I want to get values for each step in workspace like when we run a .m file. How to do that?

Best Answer

Adi - instead of writing your variables to the workspace, why not just save the results (of the 2400 seconds) to a mat file using save? I think that may be a cleaner approach. Or is there a particular reason why you want to try and access this data from the workspace?