File Exchange Pick of the Week

Our best user submissions

Web browser viewable animations

Jiro's pick this week is Web-browser viewable animations by Kevin Bartlett.

I love thinking about creative ways of presenting results. As the number of dimensions increases, I find myself using animation as a way to convey one of the dimensions, oftentimes time. In MATLAB, it's easy to make animations, but when I need to visualize data on a website, I have to get creative. The description Kevin has on his entry page accurately explains the kinds of things I need to be concerned about when creating animations for web pages. To summarize,

  • Movie files may not play well in some platforms without an appropriate software.
  • Movie files tend to be large, especially when you try to make them cross-platform.
  • The image quality may suffer due to video compression.

For these reasons, I often create animated GIF's from my MATLAB visualizations. You can create animated GIF's using the imwrite function. However, Kevin introduces a more elegant, versatile approach of using Javascript to build and incorporate speed and play controls into your animations.

Click on the image below to see an example of a Javascript animation page.

His function has many options to customize the animation and the webpage, including frame delay controls. He provides plenty of documentation and examples to help you use his function.


Give this a try and let us know what you think here or leave a comment for Kevin.

Published with MATLAB® R2013b

  • print


To leave a comment, please click here to sign in to your MathWorks Account or create a new one.