Last active
December 12, 2015 01:08
-
-
Save alphaville/4688208 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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