Skip to content

Instantly share code, notes, and snippets.

@bunnylab
Created December 8, 2013 21:13
Show Gist options
  • Save bunnylab/7863892 to your computer and use it in GitHub Desktop.
Save bunnylab/7863892 to your computer and use it in GitHub Desktop.
//imports our data from a tab delimited or csv file
//put each time step on a different row
ball_data = importdata('insertfilepath');
//keeps a constant plot for us to write an animation on
hold on
//itterate through all the time steps writing a frame for each one
for i=1:length(ball_data)
plot(ball_data(i, insertrelevantcol), ball_data(i, insertrelevantcol2)
//clear the current graphics
clf
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment