Power Spectrum with frequency as x-axis and db level as y-axis
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/480748/image.png)
0 Commenti
Risposte (1)
Mathieu NOE
il 7 Gen 2021
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 Commenti
Vedere anche
Categorie
Scopri di più su Simulation, Tuning, and Visualization in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!