What is the correct way of using pwelch ?
조회 수: 5 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!