Default output for ps in the spectrogram function

1 visualización (últimos 30 días)
John Hunt
John Hunt el 8 de Dic. de 2023
Comentada: John Hunt el 11 de Dic. de 2023
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 comentarios
Paul
Paul el 8 de Dic. de 2023
Editada: Paul el 9 de Dic. de 2023
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 el 11 de Dic. de 2023
Thank you Paul, you are exactly right. The default is psd.

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 8 de Dic. de 2023
Apparently the default for spectrumtype is 'psd'. At least that’s how I read it.

Más respuestas (0)

Categorías

Más información sobre Parametric Spectral Estimation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by