Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

# Sound Pressure Level Calculator 1.0

Date Added: July 22, 2013  |  Visits: 253

Function calculates sound pressure level in decibels, given a pressure signal in pascals. SPL_dB = spl(p_Pa,ref)Calculate sound pressure level (in dB) of given pressure signal 'p_Pa'. Input variable 'ref' can be any user-defined reference pressure or simply 'air' or 'water' to use standard values for air and water.Pressure signal input p_Pa must be in units of pascals if 'air' or 'water' are used to define the reference pressure. Otherwise any pressure signal units are acceptable, given they match the units of the reference pressure.Pressure signal vector should be long enough to capture nature of the signal. In other words, a single pressure value is not sufficient for root-mean-square calculation. Note that this does account for frequency content. A-weighted decibels (dBA) are frequency-dependent. This function does not compute dBA.Example using Matlab's built-in train whistle sound:load train % (let's assume y is has pascals as its units)spl(y,'air')ans = 84.6 The example above gives the same as the following:load train % (let's assume y is has pascals as its units)spl(y,20*10^-6)ans = 84.6Note: Typically we only write decibels to integer values or one decimal place. Anything on the hundredth-of-a-decibel level is probably just noise and can be ignored.

 Requirements: No special requirements Platforms: Matlab Keyword: Builtin,  Calculation,  Compute,  Frequencydependent,  Function,  Matlabs,  Train,  Whistle Users rating: 0/10

USER REVIEWS
 More Reviews or Write Review
SOUND PRESSURE LEVEL CALCULATOR RELATED