MATLAB: To save workspace variables automatically

automaticallysaveworkspace

I have 5 matlab scripts.
I am running these scripts one after the other using eval() function.
I want to save the workspace variables once previous script finishes and new script starts executing.
Is there any function to save ALL WORKSPACE VARIABLES TOGETHER ???

Best Answer

save yourfilename
doc save
doc load