toon0331.m
来自「老外写的小波变换的工具箱」· M 代码 · 共 36 行
M
36 行
% toon0331 -- Behavior of Wavelet Transform of Singularities
%
% Here we analyze 4 functions:
%
% Ramp = t - (t >= .37);
% Crease = exp(-4*abs(t - .37));
% Cusp = sqrt(abs(t - .37));
% Sing = 1 ./abs(t - (k+.5)/2048);
%
% These have singularities of degree 0, 1, 1/2, and -1,
% respectively.
%
n = 4096;
t = (1:n) ./n;
Ramp = t - (t >= .37);
Crease = exp(-4*abs(t - .37));
Cusp = sqrt(abs(t - .37));
k = floor(n * .37);
Sing = 1 ./abs(t - (k+.5)/n); Sing = Sing ./ norm(Sing) .* 20;
%
subplot(221); plot(t, Sing); title(' Sing')
subplot(222); plot(t, Ramp); title(' Ramp')
subplot(223); plot(t, Cusp); title(' Cusp')
subplot(224); plot(t, Crease); title(' Crease')
%% Part of Wavelab Version 850% Built Tue Jan 3 13:20:43 EST 2006% This is Copyrighted Material% For Copying permissions see COPYING.m% Comments? e-mail wavelab@stat.stanford.edu
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?