Code covered by the BSD License  

Highlights from
ANIMATOR - animate data


4.8 | 8 ratings Rate this file 36 Downloads (last 30 days) File Size: 377 KB File ID: #16037
image thumbnail

ANIMATOR - animate data



21 Aug 2007 (Updated )

This GUI tool allows you to animate your data with controls for playback speed and looping.

Editor's Notes:

This was a File Exchange Pick of the Week

| Watch this File

File Information

This GUI tool allows you to animate your data with controls for playback speed and looping.

The controls allows you to speed up and slow down (or reverse) the playback. You can pause at any time. You can also drag the time line bar to go to arbitrary frames. Also, use the arrow keys to move between frames (left or right) or change the speed (up or down). Spacebar pauses/starts the animation. In addition to the animation speed, the animation frame interval rate can be set from the menu.

The graphics properties can be customized via a context menu on the objects. Right-click on the plotted lines to bring up the context menu.

The animation can be exported to an AVI or an Animated GIF (from the menu).

ANIMATOR(X, Y) animates the data. The data has to be in one of the following formats. The general form is a 3-D array. 1st dimension is the numbe of elements in a signal (m). 2nd dimension is the number of lines (n). 3rd dimension is the number of frames (p).

ANIMATOR(X, Y, PARAM1, VALUE1, ...) accepts additional arguments:
  'axis' : {'auto'}, 'equal
  'xlim' : 'auto', [XMIN, XMAX].
  'ylim' : 'auto', [YMIN, YMAX].
  'title' : <title text>
  'xlabel': <xlabel text>
  'ylabel': <ylabel text>
  'smooth': {'off'}, 'on'. Anti-aliasing

x = (0:.01:10)';
y = nan(length(x), 2, 400);
for idx = 1:400;
animator(x, y);

*NOTE 1* This uses the new MATLAB Class System, so it requires R2008a or newer.
*NOTE 2* Requires R2010b or newer to export to an AVI.
*NOTE 3* Requires Image Processing Toolbox to export to Animated GIF, if using R2008b or older. If you're not going to export to Animated GIF, you don't need Image Processing Toolbox.

Required Products Image Processing Toolbox
MATLAB release MATLAB 8.0 (R2012b)
Other requirements This was created in R2012a, but it has been tested in R2008a. The function requires the "animatorIcons.mat" included in the ZIP file.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (11)
22 Jun 2013 S

This is a great toolbox, works really well and is easy to use. I am having a couple of problems with it though.

1. My axis are all reversed and upside down... (my x values start negative and go to positive)
2. The export to gif and AVI features don't seem to work, I just get all the frames, but they just contain the menu items Extra -> Export to -> as if they are a screenshot.

I'm on R2012b, it doesn't display any other errors

28 Feb 2013 waterwave

this is an amazing toolbox...
but how can we define the colour of the curve, the shape of curve like 'b-', etc...
how to include another graphic option?

12 Sep 2012 peter

thanks a lot, Jiro

15 May 2011 pink

how to use

05 Aug 2010 Daniel Jaramillo

It is precfectly explained, plus the code is commented and very organized. Thanks a lot!

02 Nov 2009 James  
11 Jul 2009 Ahmet Mert

woow amazing! thanks

02 Jul 2009 Paul Foxgrover

This is a great program. Very helpful!!!!! Thank you!!!

30 Mar 2008 Harris Ahmed

Needs description of how to make it work

10 Sep 2007 bibin mathew  
29 Aug 2007 Scott Hirsch

Brilliant! Jiro scores again.

10 Sep 2012

Changed the implementation to use MATLAB classes. Added the ability to bring in data from the base workspace. Added the ability to interactively change the graphics properties via context menu.

12 Sep 2012

Updated to include an App file for R2012b.

Contact us