- Omitting spectrumtype, or specifying 'psd', returns the power spectral density.
- Specifying 'power' scales each estimate of the PSD by the equivalent noise bandwidth of the window. The result is an estimate of the power at each frequency. If the 'reassigned' option is on, the function integrates the PSD over the width of each frequency bin before reassigning.
In using spectrogram, what is the difference between specifying option 'power' and 'psd'?
조회 수: 12 (최근 30일)
이전 댓글 표시
I ran two tests, with identical input data, first with:
[s,f,t] = spectrogram(y1, hann(windowsz), noverlap, nfft, fs,'yaxis','power','reassigned');
then with:
[PSDs,f,t] = spectrogram(y1, hann(windowsz), noverlap, nfft, fs,'yaxis','psd','reassigned');
I then checked to see if the results where the same:
if s == PSDs
a = 'SAME'
end
and the result was 'SAME'
So, what do options 'psd' and 'power' do?
댓글 수: 0
답변 (2개)
Star Strider
2016년 7월 25일
The best I can do is to quote the documentation:
Greg Dionne
2017년 5월 2일
The first output is always the (unmodified) STFT.
The 'power' and 'psd' and 'reassign' flags only affect the later outputs (most notably Pxx).
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!