I also forgot to mention. Would I multiply each segment afterwards with the rectangular or window function to obtain their respective windows?
Data segmenting with overlap and then multiplying each segment with hammond and rectangular window
9 次查看(过去 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 个评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!