What is the correct way of using pwelch ?

조회 수: 5 (최근 30일)
Shirin patil
Shirin patil 2017년 12월 11일
편집: the cyclist 2017년 12월 11일
I have array 'x' of 5000 real valued data over which i have to use 'pwelch'. I am doing it in the following two ways.
First way is:
Fs = 8000;
noverlap = 125;
window = 250;
nfft1 = 250;
[psL fpwelch] = pwelch(x,hamming(window),noverlap,nfft1,Fs);
second way is:
Fs = 8000;
noverlap = 125;
window = 250;
nfft2 = 500;
[psL fpwelch] = pwelch(x,hamming(window),noverlap,nfft2,Fs);
The only differnce is that nfft2 > nfft1. The graph is smooth enough without any noise when i use second way which is my requirement as well. First way is correct, i have no doubt in that.
Is second way is also correct ?

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by