Revision a9f38bb8535cb5e7bf719da6e9070bc256a827a9 authored by MSchonewille on 09 July 2019, 07:16 UTC, committed by GitHub on 09 July 2019, 07:16 UTC
Matlab routines to analyze compensatory eye movements recorded using the Iscan system (120Hz) in mice.
1 parent 836f605
Raw File
drpdiff.m
% 3 point differentiator

function cc=drpdiff(cc,sf)

cof=[-1 0 1];               
cof=cof.*(sf/2);             
temp=cc'*cof;                
temp=temp';
aantal=length(temp);

temp2=[temp(1,1:aantal-2);temp(2,2:aantal-1);temp(3,3:aantal)];   
e=sum(temp2);                
cc=[e(1) e e(aantal-2)];     
back to top