📄 haar.m
字号:
function x=haar(a,ts)
%ha = haar(a,ts) computes the Haar wavelet for a given dilation factor, a, and
%sampled at a rate of ts.
%This routine is used by the routine, ctwt.
%
%Author: Ajit S. Bopardikar
%Copyright (c) 1998 by Addison Wesley Longman, Inc.
%
if(a~=0)
x = abs(a)/2 - (0:ts:abs(a));
x = sign(a)*sign(x)/sqrt(abs(a));
else
fprintf('Dilation factor of 0 encountered. Cant compute wavelet');
end %endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -