How to draw a high-contrast spectrogram?

Some software for sound analysis can draw spectrograms with higher contrast (backgrounds are almost zero). I was wondering what tricks may I use to generate similar spectrograms.
Figure-1 A spectrogram generated by matlab function spectrogram()
Figure-2 A spectrogram of the same audio signal generated by a software

답변 (2개)

Andres Morales
Andres Morales 2023년 1월 22일

1 개 추천

You can modify the spectrogram minimum thresholding value. This will zero values below the threshold:
https://www.mathworks.com/help/signal/ref/spectrogram.html#namevaluepairarguments
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 5월 26일

0 개 추천

Hi,
Use colormap()

댓글 수: 3

zhehao.nkd
zhehao.nkd 2021년 5월 26일
Hi, thank you very much! Could you please tell me more about the details, do you mean self-defining the colormap values?
colormap(jet); colormat(hsv); etc
zhehao.nkd
zhehao.nkd 2021년 5월 31일
Thank you for your reply! But I am sorry that the way I ask my question may be misleading. Increasing the contrast by applying different colormaps may not be what I need. Instead, I would like to improve the contrast by cleaning the noisy background as the second Figure shows. Is there any possible solution?

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

카테고리

도움말 센터File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

태그

질문:

2021년 5월 26일

답변:

2023년 1월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by