The Auditory Modeling Toolbox

Applies to version: 0.10.0

View the code

Go to function

EXP_VERHULST2012 - Compute figurs from the Verhulst paper

Usage

output = exp_verhulst2012(flag)

This script reproduces figures 2a and 2c from Verhulst et al. "Nonlinear time-domain cochlear model for transient stimulation and human otoacoustic emission." The Journal of the Acoustical Society of America 132.6 (2012): 3842-3848.

Requirements and installation:

  1. Python >2.6 is required with numpy and scipi packages. On Linux, use sudo apt-get install python-scipy python-numpy
  2. Compiled files with a C-compiler, e.g. gcc. In amtbase/bin/verhulst2012 start make (Linux) or make.bat (Windows)
  3. On linux, when problems with GFORTRAN lib appear, try sudo ln -sf /usr/lib64/libgfortran.so.3.0.0 /mymatlabroot/sys/os/glnxa64/libgfortran.so.3 (mymatlabroot is usually /usr/local/MATLAB/version

Examples:

To display Figure 2a from the Verhulst et al. (2012) use:

exp_verhulst2012('fig2a');

This code produces the following output:

Traceback (most recent call last):
  File "run_cochlear_model.py", line 1, in <module>
    import numpy as np
ImportError: No module named numpy
exp_verhulst2012_1_1.png

To display Figure 2c from the Verhulst et al. (2012) use:

exp_verhulst2012('fig2c');

This code produces the following output:

Traceback (most recent call last):
  File "run_cochlear_model.py", line 1, in <module>
    import numpy as np
ImportError: No module named numpy
exp_verhulst2012_2_1.png

References:

S. Verhulst, T. Dau, and C. A. Shera. Nonlinear time-domain cochlear model for transient stimulation and human otoacoustic emission. J. Acoust. Soc. Am., 132(6):3842 -- 3848, 2012.