Habituation (HAB) studies in Matlab.