TA的每日心情 | 无聊 10-1-2016 13:38 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
汽车零部件采购、销售通信录 填写你的培训需求,我们帮你找 招募汽车专业培训老师
% Check arguments.
nbIn = nargin;
msg = nargchk(2,7,nbIn);
if ~isempty(msg)
error('Wavelet:FunctionInput:NbArg',msg)
end
if ischar(varargin{1})
[Lo_D,Hi_D] = wfilters(varargin{1},'d'); next = 2;
else
Lo_D = varargin{1}; Hi_D = varargin{2}; next = 3;
end
% Check arguments for Extension and Shift.
DWT_Attribute = getappdata(0,'DWT_Attribute');
if isempty(DWT_Attribute) , DWT_Attribute = dwtmode('get'); end
dwtEXTM = DWT_Attribute.extMode; % Default: Extension.
shift = DWT_Attribute.shift1D; % Default: Shift.
for k = next:2:nbIn-1
switch varargin{k}
case 'mode' , dwtEXTM = varargin{k+1};
case 'shift' , shift = mod(varargin{k+1},2);
end
end
这是MATLAB小波工具箱中内置函数DWT函数程序一开始部分,我怎么一点都读不懂?我大致知道是输入参量的设置,比如~isempty这啥意思?请高手给与指教 |
|