[1187d6]: ltfatsetdefaults.m Maximize Restore History

Download this file

ltfatsetdefaults.m    20 lines (17 with data), 563 Bytes

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