Octave spectrum (ANSI S1.11-2004)

Function for estimating the octave spectrum of a given signal.
Updated 29 Apr 2019

View License

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:
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

S = octave spectrum (dB)
fm = midband frequency
overall_lev = overall level
overall_levA = weighted overall level
sfilt = third-octave filtered signals

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

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!
Version Published Release Notes