dbc
Acoustic C-weighting function.
Syntax
Output = dbc(freq,mag)
Output = dbc(freq,mag,ref)
Inputs
- freq
- The vector of frequency values.
- mag
- The spectral magnitudes corresponding to freq.
- ref
- The optional decibel reference (default: 1.0).
Outputs
- Output
- The weighted response.
Example
Plot the C weights in decibels with log spacing for frequency.
freq = logspace(1,5,100);
mag = ones(1,length(freq));
output = dbc(freq, mag);
semilogx(freq, output);
Comments
C-weighting dampens the non-audible components of the input curve. Output is not converted to decibels, which can be done when plotting.
The magnitude vector is divided by the reference and then weighted.