# hz2erb, erb2hz

< Programmer Guide | Command Reference | EVAL

Jump to navigation
Jump to search
Convert all elements of *x* from Hertz to ERB (equivalent rectangulare bandwidth) and vice versa.

- Usage
`hz2erb(`

`x`)`erb2hz(`

`x`)`x`- a scalar, vector or matrix

- Result
- The result
*r*has the same type as*x*and contains the converted elements of*x*.**hz2erb***r*_{i,j}= 16.7 * log_{10}(1 +*x*_{i,j}/ 165.4)*x*_{i,j}is the frequency in Hz and must be greater than 0**erb2hz***r*_{i,j}= 165.4 * (10 ^ (0.06 **x*_{i,j}) - 1)*x*_{i,j}is the frequency in ERB and must be greater than 0

- See also
- hz2mel, mel2hz, hz2bark, bark2hz, hz2cent, cent2hz, hth, lin2log, log2lin