Data segmenting with overlap and then multiplying each segment with hammond and rectangular window
Mostrar comentarios más antiguos
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 comentarios
Ryan Le
el 23 de Nov. de 2020
Mathieu NOE
el 24 de Nov. de 2020
hello
you can have a look at pwelch function to see how overlapping and windowing is done for fft spectral analysis
edit pwelch
Ryan Le
el 24 de Nov. de 2020
Mathieu NOE
el 24 de Nov. de 2020
Yes, windowing applies on time domain , before you do fft
Ryan Le
el 24 de Nov. de 2020
Mathieu NOE
el 25 de Nov. de 2020
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
Respuestas (1)
Shubham Khatri
el 7 de Dic. de 2020
0 votos
Hello,
Hope it helps
Categorías
Más información sobre Spectral Estimation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!