function [x,y,dx,dy,time,M,centroids]=pyanalyze(mainout,N) n=0; centroids=[]; while n