title: Creating a movie in MATLAB with point data for a simple N-body simulation
body: <p>I am trying to write a simple n-body gravity simulation with 4 particles in C++. I am outputting the positions of the 4 particles to .mat files labeled "time_X.mat" (where X=1,2,3.... indicates the time-stamp) in the form of a 4x2 matrix where
  i'th row indicates (x,y) cooridinates of the ith particle at time X . </p>
  
  <p>Now for a <em>particular</em> time-step I am able load the .mat file into MATLAB and get a scatterplot of the points in the matrix, showing me particle positions. But I would like to create a movie out of all the .mat files / scatter-plots of the time_X.mat files which shows me the evolution of the 4 particle syestem . How should I do that in MATLAB?</p>