[a12f41]: ltfatsetdefaults.m Maximize Restore History

Download this file

ltfatsetdefaults.m    19 lines (18 with data), 562 Bytes

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