Octave spectrum (ANSI S1.11-2004)
This function estimates and display the octave spectrum (optionally A-weighted) in dB scale of a given 1D signal.
It has been coded in compliance with ANSI S1.11-2004 and with full compatibility with Octave.
Inputs and outputs are reported below:
INPUTS
s = input signal
fs = sampling frequency
b = octave ratio reccomended 1 or 3
dbRef = standard reference for decibel scale calculation, default value: 1
weightFlag = A-weighting [0,1], default value: 1
plotFlag = generate octave diagram [0,1], default value: 1
OUTPUTS
S = octave spectrum (dB)
fm = midband frequency
overall_lev = overall level
overall_levA = weighted overall level
sfilt = third-octave filtered signals
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Sound Level Instrument version 1.2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |