|MATLAB Function Reference|
Allocate matrix for movie frames
allocates an appropriately sized matrix for the
M = moviein(n)
n columns to store
n frames of a movie based on the size of the current axes.
M = moviein(n,h)
specifies a handle for a valid figure or axes graphics object on which to base the memory requirement. You must use the same handle with
getframe. If you want to capture the axis in the frames, specify
h as the handle of the figure.
M = moviein(n,h,rect)
specifies the rectangular area from which to copy the bitmap, relative to the lower-left corner of the figure or axes graphics object identified by
rect = [left bottom width height], where
bottom specify the lower-left corner of the rectangle, and
height specify the dimensions of the rectangle. Components of
rect are in pixel units. You must use the same handle and rectangle with
moviein is no longer meeded as of MATLAB Release 11 (5.3). In earlier versions, pre-allocating a movie increased performance, but there is no longer a need to do this.