Hamming window for a wavelet

5 views (last 30 days)
Abdullah Jarah
Abdullah Jarah on 27 May 2021
Edited: Image Analyst on 28 May 2021
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)

Answers (0)

Categories

Find more on AI for Signals and Images in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!