Taylar window(Kaiser) ,hamming,hanning window?

How difference between these three windows?
If Iam have signal(row vectrors) with length(32) ,How applied this three windows on my signal ?

 Akzeptierte Antwort

Wayne King
Wayne King am 2 Dez. 2013
Bearbeitet: Wayne King am 2 Dez. 2013

1 Stimme

Assume x is your signal
x = randn(32,1);
x = x.*hamming(length(x));
The differences in the windows are largely about the width of the main lobe differences in the level of the sidelobes. You can launch wvtool to compare the sidelobe behavior.
wvtool(hamming(32))
Note that some important measurements about the window are displayed at the bottom.

3 Kommentare

Mary Jon
Mary Jon am 2 Dez. 2013
Bearbeitet: Mary Jon am 2 Dez. 2013
Thank you Wayne.
this code is true or not of 8 signals with length(32)
on each signal applied this three windows
w111 =hanning(32) ;
w222= hamming(32);
w333 =kaiser(32,2.5);
wvtool(w111,w222,w333)
Sig = Sig.*repmat(w111,1,8);
Sig1 = Sig1.*repmat(w222,1,8);
Sig2 = Sig2.*repmat(w333,1,8);
Wayne King
Wayne King am 2 Dez. 2013
Yes, absolutely correct.
Mary Jon
Mary Jon am 2 Dez. 2013
Bearbeitet: Mary Jon am 2 Dez. 2013
If I want take PSD to these signals after DFT ,I must take absolute value of DFT by this code? or not necessary,directly applied PSD?
T=(abs(fft(Sig)));
T=T.*conj(T);
T1=(abs(fft(Sig1)));
T1=T1.*conj(T);
T2=(abs(fft(Sig2)));
T2=T2.*conj(T);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Wayne King
Wayne King am 2 Dez. 2013

1 Stimme

Yes, after you window the data, you can obtain the DFT of the signals and then take the modulus squared for the magnitude-squared DFT
w111 =hanning(32) ;
Sig = Sig.*repmat(w111,1,8);
SigDFT = abs(fft(Sig).^2);

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by