Why 8 segments for pwelch?

6 visualizaciones (últimos 30 días)
Chinyere Williams
Chinyere Williams el 28 de Abr. de 2016
Respondida: Rick Rosson el 29 de Abr. de 2016
Hi, If anyone could help me out i'd be very grateful. I'm using the pwelch function and I was just wondering why the default number of segments is 8? Is this when it is most effective, and if so, why? This is a general question for understanding
Thank you very much

Respuesta aceptada

Rick Rosson
Rick Rosson el 29 de Abr. de 2016
The use of 8 as the default value for the number of segments is purely arbitrary. It is a perfectly reasonable value, but it is no better or worse than any other choice. In general, you can often achieve better results by choosing a custom value for the window size and the overlap amount. Remember that there is a trade off between the window size and the frequency resolution. The larger the window, the smaller the frequency increment, and vice versa.
Please try:
nSegments = ... ;
winSize = signalLength/nSegments;
overlap = winSize/2;
fftSize = winSize;
figure;
pwelch(x,winSize,overlap,fftSize,Fs);
for a variety of values for nSegments.

Más respuestas (0)

Categorías

Más información sobre Spectral Estimation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by