# hz2mel, mel2hz

< Programmer Guide | Command Reference | EVAL

Jump to navigation
Jump to search
Convert all elements of *x* from Hertz to Mel and vice versa.

- Usage
`hz2mel(`

`x`)`mel2hz(`

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

- Result
- The result
*r*has the same type as*x*and contains the converted elements of*x*.**hz2mel***r*_{i,j}= 2595 * log_{10}(1 +*x*_{i,j}/ 700)*x*_{i,j}is the frequency in Hz and must be greater than 0**mel2hz***r*_{i,j}= 700 * (10 ^ (*x*_{i,j}/ 2595) - 1)*x*_{i,j}is the frequency in Mel and must be greater than 0

- See also
- hz2bark, bark2hz, hz2erb, erb2hz, hz2cent, cent2hz, hth, lin2log, log2lin