필터 지우기
필터 지우기

When i plot spectogram with the following code, it shows frequencies at 0.4 and 0.8. Why it is so? Why not 1.256 and 2.51?

조회 수: 1 (최근 30일)
N = 1024;
n = 0:N-1;
w0 = 2*pi/5;
x = sin(w0*n)+10*sin(2*w0*n);
s = spectrogram(x);
spectrogram(x,'yaxis')

답변 (1개)

Star Strider
Star Strider 2016년 3월 31일
The spectrogram function presents those data because it normalises the frequency axis from 0 to pi. You defined ‘w0=2*pi/5’. Since the arguments to the sin functions are ‘w0’ and ‘2*w0’, the frequencies are 2/5*pi and 4/5*pi, or 0.4 and 0.8 of the full frequency axis range respectively.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by