?? haardecompstep.m
字號:
function y = HaarDecompStep(x, len, normalization)% y = HaarDecompStep(x, len, normalization) does one step of a Haar wavelet% decomposition on the first len elements of x, with normalization either% 'max' or 'L2'.if strcmp(normalization, 'L2') factor = sqrt(2);else factor = 2;end;y = [(x(1:2:len-1) + x(2:2:len))/factor ... % sums (x(1:2:len-1) - x(2:2:len))/factor ... % differences x(len+1:length(x))]; % anything beyond lenreturn;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -