https://github.com/alexandre-zenon/pupil
Raw File
Tip revision: 0a2c14c5d1e17b1bbfb08439165b5dccd573e50a authored by zenonal on 12 July 2023, 10:01:13 UTC
more general blink detection
Tip revision: 0a2c14c
extract_cutoff.m
% extracts cutoff from .mat file with pupilData format (where times of
% eyelink have already been divided by 1000 {msec to sec})

function [cutoff] = extract_cutoff(filename, data)

load(filename)
    
    TrialbySecond = 1/round(nanmean([data.pupilData.trials.stopTime] - [data.pupilData.trials.startTime]));
    cutoff = TrialbySecond/2;
    
end
back to top