The present code is a Matlab function that provides a C-weighting of a given signal via spectral processing.
An example is given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.
The code is based on the theory described in:
 Design Response of Weighting Networks for Acoustical Measurements ANSI S1.42-2001. Washington, American National Standards Institute, 2001.
 Electroacoustics Sound Level Meters Part 1: Specifications IEC 61672-1:2002. Geneva, International Electrotechnical Commission, 2002.
Hristo Zhivomirov (2019). C-weighting Filter with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/71144-c-weighting-filter-with-matlab), MATLAB Central File Exchange. Retrieved .