How to change the resolution of a spectrogram?

조회 수: 5 (최근 30일)
Sultan Al-Hammadi
Sultan Al-Hammadi 2018년 10월 24일
댓글: Sultan Al-Hammadi 2018년 10월 26일
I have written a code which used to plot the spectrogram of a signal. This line was to get the spectrogram:
[s,f2,t] = spectrogram(xc,win,noverlap,FFT_LENGTH,fs,'yaxis');
Then I used imagesc to plot the spectrogram: imagesc(t,f2,20*log10(abs(s)));
Everything is working fine except the following thing:
I don't know how to change the scale/resolution for the thing circled by a red line [looks like steps] to make it looks like a straight line (not like steps)? (please see the attached spectrogram)
  댓글 수: 2
Jan
Jan 2018년 10월 24일
편집: Jan 2018년 10월 24일
Modify the values for win, noverlap and FFT_LENGTH.
Sultan Al-Hammadi
Sultan Al-Hammadi 2018년 10월 26일
that's sounds correct

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

답변 (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