Skip to content

Instantly share code, notes, and snippets.

@alphaville
Last active December 12, 2015 01:08
Show Gist options
  • Select an option

  • Save alphaville/4688208 to your computer and use it in GitHub Desktop.

Select an option

Save alphaville/4688208 to your computer and use it in GitHub Desktop.
function output = val2worspace(varargin)
% All variables of this function will be exported
% to the workspace
WHO = who;
for i = 1:length(WHO)
assignin('base', WHO{i}, eval(WHO{i}));
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment