What the z-axis means from the spectrogram function?

조회 수: 10 (최근 30일)
Wendy Fernandez
Wendy Fernandez 2017년 6월 12일
댓글: Star Strider 2017년 6월 15일
I am reading the documentation of the spectrogram function and a do not understand a section in specific (Spectrogram and Instantaneous Frequency). The example provided in the documentation is the following:
Fs = 1000;
t = 0:1/Fs:2-1/Fs;
y = chirp(t,100,1,200,'quadratic');
spectrogram(y,100,80,100,Fs,'yaxis')
view(-77,72)
shading interp
colorbar off
The obtained result is the attached image. In the x-axis, the frequency is displayed and z-axis time is displayed, what parameter is displayed in the y-axis?

채택된 답변

Star Strider
Star Strider 2017년 6월 12일
In image.png, the x-axis is time, the y-axis is frequency (because you told it to plot that way with the 'yaxis' argument), and the z-axis is amplitude.
The spectrogram plot is a surf plot, with the default orientation being ‘view(0,90)’. With ‘view(-77,72)’, you rotated it.
  댓글 수: 2
Wendy Fernandez
Wendy Fernandez 2017년 6월 15일
편집: Wendy Fernandez 2017년 6월 15일
Thank you for your explanation. But, I thought z-axis was power in db. Could you explain why is amplitude?
Star Strider
Star Strider 2017년 6월 15일
My pleasure.
‘Amplitude’ is simply a generic term. There are many ways to express it, depending on what you are doing. You are correct that the amplitude in the power spectral density plot is power in dB.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by