How to use matlab audioread Plot the spectrum with frequency on the x-axis and dBA /dBC on the y-axis?

8 views (last 30 days)
Hi,everyone~
How to use matlab audioread to plot the spectrum with frequency on the x-axis and dBA/dBC sound pressure level (SPL) on the y-axis?
As shown in Figure 1.
The data that is currently available is a audio(wav).
I would be grateful if you have example code!
thanks
Attach a sample audio.(See the attachment)
fig.1

Accepted Answer

Chunru
Chunru on 24 Mar 2022
doc audioread % for reading audio file
doc pwelch % for computing power spectral density
  4 Comments
ZHU z
ZHU z on 5 Apr 2022
hi Chunru~
Sorry to bother you again, the result after I run the code is shown in the figure 1.
The vertical axis is in dBm, is this the correct result? How do I convert to dBA? Thanks a lot~
fig 1

Sign in to comment.

More Answers (0)

Categories

Find more on Measurements and Spatial Audio in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!