Matlab code for pupillometry studies.