4.90909

4.9 | 11 ratings Rate this file 31 downloads (last 30 days) File Size: 2.02 MB File ID: #18210

anymate

by Jerker Wagberg

 

03 Jan 2008 (Updated 01 Apr 2008)

No BSD License  

Animate Handle Graphics objects

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

Download Now | Watch this File

File Information
Description

ANYMATE can be used to easily animate Matlab plots. It is very general and is not limited to any specific plot type or specific object. Given a plot function and some data, a useful animation can often be accomplished with just a single line of code. It is also possible to create an animation from existing figures.

The generated animations are not Matlab movies, but are instead real Handle Graphics objects, having the capability to change their appearences in real time. The changes are performed in the background and any Matlab command can be entered while an animation is active, including changing the properties of an animated object.

Plots can be zoomed, panned and rotated while the animation is running.

Animations can be saved as normal .fig files and started immediately, just by opening the file. Animations can also be saved as GIF, AVI and WMV files.

For more information and examples, see the attached HTML file, which, by the way, is the reason for the heavy download size, since the HTML contains animated GIF files.

The author wishes to thank John D'Errico for beta-testing ANYMATE, making sure that ANYMATE also works on a Mac.

MATLAB release MATLAB 7.5 (R2007b)
Other requirements Should work down to 7.1 (R14SP3). Send bug reports directly to user by email.
Zip File Content  
Published M Files ANYMATE - Animate Handle Graphics objects
Other Files anymate.m,
html/anilim1.png,
html/anilim2.png,
html/animembrane2.gif,
html/toolbar.png,
html/anipeaks2.gif,
html/animri.gif
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
04 Jan 2008 John D'Errico

NIFTY. Ok, maybe this comment shows my age, but it definitely applies. Its well done in all respects. Everything I tried worked. Animations were simple to build.

I did manage to crash Matlab after too many animations. This was probably a Matlab/Java version bug, maybe even Mac related, probably memory related.

Well done.

04 Jan 2008 Jiro Doke

Very nice! Here are a few things that I really like about this submission:
1. It interpolates (can choose between linear and spline-like) between "frames", which allows you to animate through only a few frames with transition. It works with images too.
2. It's a "mode" within a figure, so the interactive tools (zoom, pan) are still accessible.
3. Nice toolbar control buttons.
4. Good documentation. The published HTML files is very informative.
5. Can export to animated GIF or AVI.

09 Jan 2008 Kelly Kearney

This is a great tool. Well documented and easy to use. Very helpful when trying to visualize a large number of model runs with varying parameters.

08 Apr 2008 Gus Brown

This is really good, and it is ideal for Matlab beginners as it makes efficient animations very easy to create.

08 May 2008 Johannes Korsawe

This is a really, really ingenious submission.
Easy to handle, great options, excellent results.
Thank you for sharing this great job.

03 Oct 2008 F Trintchouk

Very general, well thought out, robust and intuitive. Thank you!

04 Nov 2008 Andres

What else to add, other than 5 stars? Helpful author, great idea, brilliant implementation, has proven usefulness many times... Thanks!

03 Feb 2009 Husam Aldahiyat

Love this!

25 Jun 2009 Emanuele Ruffaldi  
29 Sep 2009 Chamane

Very helpfull

03 Oct 2009 Bolu Ajiboye

This is an excellent submission. I wish i could give it 4.5 stars. Sorry to be the only one not to go for 5, but i have some issues, namely that some figures seem to get distorted when applied to anymate. Also, when you set the runmode and method from the function call, anymate doesnt seem to remember it. You have to do it again from the toolbar. Dont get me wrong, i love this function. It is one of the best i have seen on fileexchange, but some things dont work (for me anyways) as described.

Please login to add a comment or rating.
Updates
07 Jan 2008

Editorial changes to description. No changes to code.

09 Jan 2008

Titlebar could become invisible when the animation toolbar was added. Fixed.

11 Feb 2008

Fixed mangled argument passing. Did not work for ticks and/or tick-labels on command line.

01 Apr 2008

Fixed typo in 'fun=anymate(...)' calling sequence.
Thanks to Andres Tönnesmann for pointing that out.
Documented a way to alleviate out-of-memory problems.

Tag Activity for this File
Tag Applied By Date/Time
data exploration Jerker Wagberg 22 Oct 2008 09:41:46
animate Jerker Wagberg 22 Oct 2008 09:41:46
animation Jerker Wagberg 22 Oct 2008 09:41:46
graphics Jerker Wagberg 22 Oct 2008 09:41:46
movie Jerker Wagberg 22 Oct 2008 09:41:46
animation Cristina McIntire 07 Nov 2008 12:53:31
potw Shari Freedman 20 Apr 2009 13:18:32
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com