
% Linear equations with coupling for synchronization;

function F=linear(t,v,flag,A,c,N)

 x = v(1:N);
 y = v(N+1:2*N);
 
 F1 = A*x + c * (y - x);
 F2 = A*y + c * (x - y);

 F=[F1;F2];

