Subsections

音圧比とデシベル / Sound Pressure Ratio and dB

2007年か2008年頃のMatlabよりdb2mag()、mag2db()、db2pow()、pow2dbが採用されたので、以下のプログラムは不要になりました。

音圧比からデシベルへの変換 / Sound Pressure Ratio to dB

function a = ratio2db(b)
%RATIO2DB   Compute dB value from ratio
%   ratio2db(b) will compute dB value from ratio assuming the ratio is
%   applied to voltage.  It is using a function dB = 20*log10(ratio).
%
%   See also: db2ratio
%
%   2005-12-09 MARUI Atsushi

a = 20.*log10(b);

デシベルから音圧比への変換 / dB to Sound Pressure Ratio

function b = db2ratio(a)
%DB2RATIO   Compute ratio value from dB
%   db2ratio(a) will compute ratio value from dB assuming the ratio is
%   applied to voltage.  It is an inverse function of dB = 20*log10(ratio).
%
%   See also: ratio2db
%
%   2005-12-09 MARUI Atsushi

b = 10.^(a/20);



MARUI Atsushi
2023-12-05