https://github.com/PerezOrtegaJ/Neural_Ensemble_Analysis
Raw File
Tip revision: 9d37fd031dfbdb4eb69faa449d0a6416267a7d4f authored by Jesús Pérez on 28 July 2020, 20:36:58 UTC
Update README.md
Tip revision: 9d37fd0
Get_ISI.m
% Get Inter spike interval (ISI)
%
% inputs: data = vector with spikes (0: no spike, 1: spike)
%         f = samples per second (sampling frequency)
%
% By Jesús E. Pérez-Ortega - jan - 2019

function isi = Get_ISI(data,f)
    id = find(data);
    isi = diff(id)/f;
end
back to top