MATLAB: Save variables in matlab workspace

MATLABworkspace

I have a function which calls a script. There are some variables in script. I want to save them to my command window. How can i do that. Any help fellas.

Best Answer

value=15;
assignin('base','var',value)
% 'var' is your variable name