erb = freqtoerb(freq);
This is a wrapper around freqtoaud that selects the erb-scale. Please see the help on freqtoaud for more information.