https://github.com/MSchonewille/iMove
Raw File
Tip revision: 5868d18867e404b7a93f20cc1397d23820d25100 authored by Martijn Schonewille on 28 August 2019, 09:34:15 UTC
Added a LICENSE file to the repository
Tip revision: 5868d18
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