28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2movie<br />

Purpose Play recorded movie frames<br />

Syntax movie(M)<br />

movie(M,n)<br />

movie(M,n,fps)<br />

movie(h,...)<br />

movie(h,M,n,fps,loc)<br />

Description movie plays the movie defined by a matrix whose columns are movie frames<br />

(usually produced by getframe).<br />

movie(M) plays the movie in matrix M once.<br />

movie<br />

movie(M,n) plays the movie n times. If n is negative, each cycle is shown<br />

forward then backward. If n is a vector, the first element is the number of times<br />

to play the movie, and the remaining elements make up a list of frames to play<br />

in the movie.<br />

For example, if M has four frames then n = [10 4 4 2 1] plays the movie ten<br />

times, and the movie consists of frame 4 followed by frame 4 again, followed by<br />

frame 2 and finally frame 1.<br />

movie(M,n,fps) plays the movie at fps frames per second. The default is 12<br />

frames per second. Computers that cannot achieve the specified speed play as<br />

fast as possible.<br />

movie(h,...) plays the movie centered in the figure or axes identified by the<br />

handle h.<br />

movie(h,M,n,fps,loc) specifies a four-element location vector, [x y 0 0],<br />

where the lower left corner of the movie frame is anchored (only the first two<br />

elements in the vector are used). The location is relative to the lower left corner<br />

of the figure or axes specified by handle h and in units of pixels, regardless of<br />

the object’s Units property.<br />

Remarks The movie function displays each frame as it loads the data into memory, and<br />

then plays the movie. This eliminates long delays with a blank screen when you<br />

load a memory-intensive movie. The movie’s load cycle is not considered one of<br />

the movie repetitions.<br />

2-1489

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!