Revision e0dda8be37519e58387c2b9702479625e66b54ec authored by MSchonewille on 09 July 2019, 07:29:08 UTC, committed by GitHub on 09 July 2019, 07:29:08 UTC
1 parent a9f38bb
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