필터 지우기
필터 지우기

Data segmenting with overlap and then multiplying each segment with hammond and rectangular window

조회 수: 5 (최근 30일)
Hello! This is currently my code:
[x,fs1] = audioread('Male1.mp3');
z1=x-mean(x);
t=(1:N)/10000;
z=x-mean(x);
w1=hamming(N);
w2= rectwin(N);
y=z.*w1;
figure;
plot(t,z,'k',t,y,'r');
xlabel('Time (s)'); ylabel('Amplitude');
figure;
y1=z1.*w2;
plot(t,y1);
It plots, but I want to overlap the data into 50 and 100 ms long overlapping segments. Would I have to use a buffer function? I'm not too familiar with Matlab. Thank you!
  댓글 수: 6
Ryan Le
Ryan Le 2020년 11월 24일
yes but the welch function plots in terms of frequency domain. Wouldn't I have to apply buffer to get these time segments?
Mathieu NOE
Mathieu NOE 2020년 11월 25일
ok maybe I added some confusion in my last answers
the original question was simply to define overlapping sections of signal, not windowing and fft as with pwelch

댓글을 달려면 로그인하십시오.

답변 (1개)

Shubham Khatri
Shubham Khatri 2020년 12월 7일
Hello,
For more information please go through the documentation of buffer function here.
Hope it helps

카테고리

Help CenterFile Exchange에서 Hamming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by