Signal filtering
이전 댓글 표시
Hi :) I'd like to know how to divide a signal into frames (for example 25 ms frames) without overlapping. And how do I multiply each frame using the Hamming window?
Thanks!
채택된 답변
추가 답변 (1개)
Wayne King
2011년 10월 20일
You have to know your sampling rate in order to know how many samples a 25-ms frame is. Here I'll assume it's 10 kHz. So 250 samples is 25 msec and there are 40 such segments in 1 second.
x = randn(1e4,1);
x = reshape(x,250,40);
ham = repmat(hamming(250),1,40);
x = x.*ham;
Each column of x is a 25 msec segment multiplied by a Hamming window.
카테고리
도움말 센터 및 File Exchange에서 Hamming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!