Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Animation

Animating plots

Functions

moviePlay recorded movie frames
getframeCapture axes or figure as movie frame
frame2imReturn image data associated with movie frame
im2frameConvert image to movie frame
animatedlineCreate animated line
addpointsAdd points to animated line
getpointsReturn points that define animated line
clearpointsClear points from animated line
comet2-D comet plot
comet33-D comet plot
drawnowUpdate figures and process callbacks
refreshdataRefresh data in graph when data source is specified

Properties

AnimatedLine PropertiesControl line animation appearance and behavior

Topics

Animation Techniques

You can use three basic techniques for creating animations in MATLAB®.

Trace Marker Along Line

This example shows how to trace a marker along a line by updating the data properties of the marker.

Move Group of Objects Along Line

This example shows how to move a group of objects together along a line using transforms.

Animate Graphics Object

This example shows how to animate a triangle looping around the inside of a circle by updating the data properties of the triangle.

Line Animations

This example shows how to create an animation of two growing lines.

Creating Stream Particle Animations

A stream particle animation is useful for visualizing the flow direction and speed of a vector field. The particles trace the flow along a particular stream line.

Record Animation for Playback

These examples show how to record animations as movies that you can replay.

Was this topic helpful?