Hamming window for a wavelet

조회 수: 5 (최근 30일)
Abdullah Jarah
Abdullah Jarah 2021년 5월 27일
편집: Image Analyst 2021년 5월 28일
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개)

카테고리

Help CenterFile 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!

Translated by