from
wsp_tmp
by Bjorn Gustavsson
Provides a temporary workspace.
|
| wsp_tmp(varargin) |
function wsp_tmp(varargin)
% WSP_TMP - A temporary workspace.
% WSP_TMP provides matlab with a temporary workspace,
% useful when you have a clogged workspace and want to test some
% operations without overwriting other data. Import variables
% from the caller workspace by calling WSP_TMP with the variables:
% WSP_TMP(VAR1,VAR2,...,VARN). Exporting new variables has to be
% done manually by ASSIGNIN
%
% SEE also: ASSIGNIN
% ver 1.0 20021007
% Copyright Bjorn Gustavsson 2002
% GNU-license apply
global Curr_Dirr
Curr_Dirr = pwd;
for i__II__ = 1:length(varargin),
vname___ = inputname(i__II__);
if ~isempty(deblank(vname___))
eval([vname___,' = varargin{',num2str(i__II__),'};'])
end
end
clear i__II__ vname___ varargin
keyboard
eval(['cd ',Curr_Dirr])
|
|
Contact us at files@mathworks.com