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 Center および File ExchangeAI 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