Power Spectrum with frequency as x-axis and db level as y-axis
14 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation, Tuning, and Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!