When I use an internet search engine it gives me thousand of pages showing how to do animation with MATLAB, including the official documentation and some youtube tutorials! Here are the first few results, which are all the official documentation:
http://www.mathworks.com/help/matlab/animation-1.html (see "Examples" at the bottom of the page)