This script produces an 80-us impulse (click) feeds it into the the 'cascade of asymmetric resonators with fast-acting compression' (CARFAC) model. The model's output ('impulse response') is converted to the frequency domain by taking the FFT (yielding the 'frequency response'). The ERB bandwidth and the quality factor (QERB) is calcualted and compared to the experimental data. The impulses responses to clicks at various intensities are also assessed and the QERBs are compared with the respective experimental data.
This code produces the following output:
CF_IHC_params = struct with fields: just_hwr: 0 one_cap: 1 ac_corner_Hz: 20 tau_lpf: 8.0000e-05 tau_out: 5.0000e-04 tau_in: 0.0100 tau1_out: 5.0000e-04 tau1_in: 2.0000e-04 tau2_out: 1.0000e-03 tau2_in: 0.0100