wt04fig05.m
来自「斯坦福大学的小波的工具箱 比matlab自带的工具箱更完善」· M 代码 · 共 51 行
M
51 行
%CAPTION
fprintf('\n');
disp('Figure 4.5')
disp('Graphs of four windows g(t) whose supports are [-.5,.5].');
close all;
N = 64;
t = -.5 + (0:N)/N;
subplot(221)
hamming = .54 + .46*cos(2*pi*t);
plot(t,hamming);
hold on
plot(t,zeros(1,N+1));
axis([-.5 .5 -.1 1.1])
title('Hamming')
subplot(222)
gaussian = exp(-18*t.^2);
plot(t,gaussian);
hold on
plot(t,zeros(1,N+1));
axis([-.5 .5 -.1 1.1]);
title('Gaussian')
subplot(223)
hanning = (cos(pi*t)).^2;
plot(t,hanning);
hold on
plot(t,zeros(1,N+1));
axis([-.5 .5 -.1 1.1]);
title('Hanning')
subplot(224)
blackman = .42+.5*cos(2*pi*t)+.08*cos(4*pi*t);
plot(t,blackman);
hold on
plot(t,zeros(1,N+1));
axis([-.5 .5 -.1 1.1]);
title('Blackman');
% Written by Maureen Clerc and Jerome Kalifa, 1997
% clerc@cmapx.polytechnique.fr, kalifa@cmapx.polytechnique.fr
%
% Part of WaveLab Version 802
% Built Sunday, October 3, 1999 8:52:27 AM
% This is Copyrighted Material
% For Copying permissions see COPYING.m
% Comments? e-mail wavelab@stat.stanford.edu
%
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?