필터 지우기
필터 지우기

Default output for ps in the spectrogram function

조회 수: 3 (최근 30일)
John Hunt
John Hunt 2023년 12월 8일
댓글: John Hunt 2023년 12월 11일
The matlab spectrogram function one of the outputs is "ps".
In the documentation it states
"[___,ps] = spectrogram(___,spectrumtype) also returns a matrix, ps, proportional to the spectrogram of x.
  • If you specify spectrumtype as "psd", each column of ps contains an estimate of the power spectral density (PSD) of a windowed segment.
  • If you specify spectrumtype as "power", each column of ps contains an estimate of the power spectrum of a windowed segment
"
What is the default of ps? PSD or power spectrum?
Thanks
  댓글 수: 2
Paul
Paul 2023년 12월 8일
편집: Paul 2023년 12월 9일
Hi John,
Click on the spectrumtype link in the question. The documentation always (AFAIK) specifies the default values of optional input arguments.
John Hunt
John Hunt 2023년 12월 11일
Thank you Paul, you are exactly right. The default is psd.

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2023년 12월 8일
Apparently the default for spectrumtype is 'psd'. At least that’s how I read it.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by