Main Content

erb2hz

Convert from equivalent rectangular bandwidth (ERB) scale to hertz

Description

example

hz= erb2hz(erb)converts values on the ERB frequency scale to values in hertz.

Examples

collapse all

Set two bounding frequencies in Hz and then convert them to the ERB scale.

b = hz2erb([20,8000]);

Generate a row vector of 32 values uniformly spaced on the ERB scale.

erbVect = linspace(b(1),b(2),32);

Convert the row vector of values into equivalent frequencies in Hz.

hzVect = erb2hz(erbVect);

Plot the two vectors for comparison. As ERB values increase linearly, Hz values increase exponentially.

plot(erbVect,hzVect,'o') title('ERB vs Hz') xlabel('ERB') ylabel('Hz') gridon

Figure contains an axes object. The axes object with title ERB vs Hz contains an object of type line.

Input Arguments

collapse all

Input frequency on the equivalent rectangular band (ERB) scale, specified as a scalar, vector, matrix, or multidimensional array.

Data Types:single|double

Output Arguments

collapse all

Output frequency in Hz, returned as a scalar, vector, matrix, or multidimensional array the same size aserb.

Data Types:single|double

Algorithms

The frequency conversion from the ERB scale to Hz uses the following formula:

h z = 10 e r b A 1 0.00437 where A = 1000 log e ( 10 ) ( 24.7 ) ( 4.37 )

References

[1] Glasberg, Brian R., and Brian C. J. Moore. "Derivation of Auditory Filter Shapes from Notched-Noise Data."Hearing Research. Vol. 47, Issues 1–2, 1990, pp. 103–138.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

版本历史

Introduced in R2019a