Hamming window for a wavelet
5 次查看(过去 30 天)
显示 更早的评论
Hello all,
I generated analytically a signal which is called the "Klauder wavelet" using a mathematical equation. However, when I plot this signal it seems that it doesn't have zero at the beginning and end of the signal. I was trying to apply a Hamming window but the result was wrong.
Could anyone help me to window the signal using a Hamming or Hanning or any other MATLAB function?
Thank you.
% analytical klauder wavelet
f1=150;
f2=3150;
T = 1.4;% the duration of the input signal in s
k= (f2-f1)./T; % rate of change of frequenc y with time
f0 = (f2+f1)./2; % midfrequency of bandwidth
dt = 0.000031;% sampling interval
t = 0:dt:T;% vector for the total recording time
t_shift = 0.00155;% time shift in seconds
amp = 1.0;
% Klauder wavelet equation
%Klauder = real(sin(pi*k.*t(T-t))/(pi*k.*t)*exp(2*pi*i*f0.*t));
ft = real((sin(pi.*k.*(t-t_shift).*(T-(t-t_shift)))./(pi.*k.*(t-t_shift))).*exp(2.*pi.*i.*f0.*(t-t_shift)));
ft = ft ./max(ft);
ft = amp.*ft;
t_klauder = t(1:101);
ft_klauder = ft(1:101);
ft_klauder_tapered = ft_klauder.*hamming(length(t_klauder));
plot(t,ft_klauder_tapered)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AI for Signals and Images 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!