Animation
Animating plots
Functions
movie | Play recorded movie frames |
getframe | Capture axes or figure as movie frame |
frame2im | Return image data associated with movie frame |
im2frame | Convert image to movie frame |
animatedline | Create animated line |
addpoints | Add points to animated line |
getpoints | Return points that define animated line |
clearpoints | Clear points from animated line |
comet | 2-D comet plot |
comet3 | 3-D comet plot |
drawnow | Update figures and process callbacks |
refreshdata | Refresh charted data |
Properties
AnimatedLine Properties | 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.
- Line Animations
This example shows how to create an animation of two growing lines.
- 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.
- Create Stream Particle Animations
Visualize the speed and direction of particles within vector fields using streamlines.
- Record Animation for Playback
These examples show how to record animations as movies that you can replay.
- Animating a Surface
This example shows how to animate a surface.