# mean_absorption

Calculate the mean absorption in salt water over a frequency range.

a = mean_absorption(freq,r,depth,Ttab) % Matlab & Octave
a <- mean_absorption(freq, r, depth, Ttab) # R

Calculate the mean absorption in salt water over a frequency range.

Input var Description Default value
freq specifies the frequency range, freq = [fmin,fmax] in Hz. For a single frequency, use a scalar value for freq.Hz
r is the path (slant) length in meters m
depth is the depths covered by the path. This can be a single value for a horizontal path or a two component vector i.e., depth=[dmax,dmin] for a path that extends between two depths. N/A
Ttab is the temperature (a scalar) in degrees C or specifies a temperature profile Ttab = [depth, tempr] where depth and tempr are equal-sized column vectors. Default value is an isothermal profile of 13 degrees. Celsius
Output var Description Units
a is the mean sound absorption over the path in dB. dB/m

### Matlab & Octave

mean_absorption([25e3 60e3],1000,[0 700])
a = 7.7302 % dB/m

### R

mean_absorption(c(25e3, 60e3), 1000, c(0, 700))
a = 7.728188 # dB/m