haar.m
来自「这是伯克里wavelet transforms一书中的例子的代码」· M 代码 · 共 15 行
M
15 行
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 + =
减小字号Ctrl + -
显示快捷键?