Hamming window for a wavelet

5 visualizaciones (últimos 30 días)
Abdullah Jarah
Abdullah Jarah el 27 de Mayo de 2021
Editada: Image Analyst el 28 de Mayo de 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)

Respuestas (0)

Categorías

Más información sobre AI for Signals and Images en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by