Skip to content

Commit c334799

Browse files
committed
change default workspace to caller for jload and jsave
1 parent ff8ae00 commit c334799

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

jload.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
% to a field in opt. opt can have the following
2121
% fields (first in [.|.] is the default)
2222
%
23-
% ws ['base'|'wsname']: the name of the workspace in which the
23+
% ws ['caller'|'base']: the name of the workspace in which the
2424
% variables are to be saved
2525
% vars [{'var1','var2',...}]: list of variables to be saved
2626
% header [0|1]: if set to 1, return the metadata of the variables
@@ -36,7 +36,7 @@
3636
% varlist: a list of variables loaded
3737
%
3838
% examples:
39-
% jload % load all variables in jamdata.jamm to the 'base' workspace
39+
% jload % load all variables in jamdata.jamm to the 'caller' workspace
4040
% jload mydat.jamm
4141
% jload('mydat.jamm','vars', {'v1','v2',...}) % load selected variables
4242
% jload('mydat.jamm','simplifycell',1)
@@ -53,7 +53,7 @@
5353

5454
opt=varargin2struct(varargin{:});
5555

56-
ws=jsonopt('ws','base',opt);
56+
ws=jsonopt('ws','caller',opt);
5757

5858
loadfun=@loadbj;
5959
if(regexp(filename,'\.[jJ][sS][oO][nN]$'))

jsave.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
% to a field in opt. opt can have the following
2121
% fields (first in [.|.] is the default)
2222
%
23-
% ws ['base'|'wsname']: the name of the workspace in which the
23+
% ws ['caller'|'base']: the name of the workspace in which the
2424
% variables are to be saved
2525
% vars [{'var1','var2',...}]: cell array of variable names to be saved
2626
% matlab [0|1] if set to 1, use matlab's built-in jsonencode to
@@ -34,7 +34,7 @@
3434
% varlist: a list of variables loaded
3535
%
3636
% examples:
37-
% jsave % save all variables in the 'base' workspace to jamdata.jamm
37+
% jsave % save all variables in the 'caller' workspace to jamdata.jamm
3838
% jsave('mydat.jamm','vars', {'v1','v2',...}) % save selected variables
3939
% jsave('mydat.jamm','compression','lzma')
4040
%
@@ -50,7 +50,7 @@
5050

5151
opt=varargin2struct(varargin{:});
5252

53-
ws=jsonopt('ws','base',opt);
53+
ws=jsonopt('ws','caller',opt);
5454

5555
allvar=evalin(ws,'whos');
5656
varlist=jsonopt('vars',{allvar.name},opt);

0 commit comments

Comments
 (0)