Diff of /ltfatsetdefaults.m [5f391e] .. [84b1c9] Maximize Restore

  Switch to unified view

a/ltfatsetdefaults.m b/ltfatsetdefaults.m
1
function ltfatsetdefaults(fname,varargin)
1
function ltfatsetdefaults(fname,varargin)
2
%LTFATSETDEFAULTS  Set default parameters of function
2
%LTFATSETDEFAULTS  Set default parameters of function
3
%
3
%
4
%  LTFATSETDEFAULTS(fname,...) will set the default parameters
4
%   `ltfatsetdefaults(fname,...)` sets the default parameters to be the
5
%  to be the parameters specified at the end of the list of input arguments.
5
%   parameters specified at the end of the list of input arguments.
6
%
6
%
7
%  LTFATSETDEFAULTS(fname) will clear any default parameters for the function
7
%   `ltfatsetdefaults(fname)` clears any default parameters for the function
8
%  fname.
8
%   `fname`.
9
%
9
%
10
%  LTFATSETDEFAULTS('clearall') will clear all defaults from all
10
%   `ltfatsetdefaults('clearall')` clears all defaults from all functions.
11
%  functions.
12
%
11
%
13
%  See also: ltfatgetdefaults, ltfatstart
12
%   See also: ltfatgetdefaults, ltfatstart
14
13
15
if strcmpi(fname,'clearall')
14
if strcmpi(fname,'clearall')
16
  ltfatarghelper('clearall');
15
  ltfatarghelper('clearall');
17
else
16
else
18
  ltfatarghelper('set',fname,varargin);
17
  ltfatarghelper('set',fname,varargin);
19
end;
18
end;
20
%OLDFORMAT
19