필터 지우기
필터 지우기

Power Spectrum with frequency as x-axis and db level as y-axis

조회 수: 7 (최근 30일)
Mengjia Lyu
Mengjia Lyu 2021년 1월 6일
답변: Mathieu NOE 2021년 1월 7일
Dear all,
I currently have the plot below for a wav file. How can I create a plot with frequency as x-axis and db level as y-axis?

답변 (1개)

Mathieu NOE
Mathieu NOE 2021년 1월 7일
hello
from what I see , the x axis units is already in Hz
to convert to dB scale , use this :
y_dB = 20*log10(abs(y_fft))
%see example attached

카테고리

Help CenterFile Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by