Default output for ps in the spectrogram function

1 次查看(过去 30 天)
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