Code covered by the BSD License  

Highlights from
Impulsive Noise Meter

image thumbnail
from Impulsive Noise Meter by Edward Zechmann
Calculates Impulsive noise metrics for hazardous acoustic noise assessent

[dB]=Pa_to_dB(p, ref)
function [dB]=Pa_to_dB(p, ref)
% % 
% % 
% % 
% % written by Edwdard Zechmann 
% % 
% % date      3 September   2009
% % 
% % modified 23 March       2010
% % 

if nargin < 1 
    p=1;
end

if nargin < 2 
    ref=0.00002;
end


dB=20.*log10(abs(p)./ref);

Contact us at files@mathworks.com