Automatically save a sequence of plots to files

Hi,
I developed a multibody dynamics code to simulate a collision between two automobiles in my master thesis, where the outputs are txt files with positions, velocities, accelerations... I wrote a m-file to animate my results in a sequence of plot in order to be able to see what was happening. My question is: is there a command that I can include in the for loop to save each plot of the evolution of the animation?
Best regards, Paulo

2 Comments

doc hgsave % perhaps?
There's a section in the graphics documenation on animation w/ some examples that's probably worth reading through thoroughly...
Thank you for the hgsave tip, I figured it out.

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 13 Aug 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!