Skip to content

Instantly share code, notes, and snippets.

@bunnylab
Last active December 30, 2015 17:58
Show Gist options
  • Save bunnylab/7863938 to your computer and use it in GitHub Desktop.
Save bunnylab/7863938 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)
%make a simple plot of two parameters
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