hanning ,hamming window in matlab?
이전 댓글 표시
how do Hanning and Hamming window in matlab?
when must I do these window after DFT signal or before DFT signal?
채택된 답변
추가 답변 (2개)
Wayne King
2013년 11월 27일
편집: Wayne King
2013년 11월 27일
That depends on how they are in your workspace. If you have 20 separate vectors, then just do this.
I'll assume they are column vectors and I'll just create 3 signals here.
s1 = randn(33,1);
s2 = randn(33,1);
s3 = randn(33,1);
Sig = [s1 s2 s3];
Now window them as before:
h = hamming(33);
Sig = Sig.*repmat(h,1,3);
Now take the DFT
SigDFT = fft(Sig);
Obviously, you have to make adjustments for the 20 columns above:
repmat(h,1,20)
for example
Wayne King
2013년 11월 27일
If you have row vectors you have to make the necessary adjustment. Just convert them to column vectors.
s1 = s1';
댓글 수: 3
Mary Jon
2013년 11월 27일
Wayne King
2013년 11월 27일
You should plot abs()
plot(abs(SigDFT))
Mary Jon
2013년 11월 27일
카테고리
도움말 센터 및 File Exchange에서 Hamming에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!