function M = moviein(n)
%MOVIEIN Initialize memory for saving movie frames.
%	M = MOVIEIN(N) creates a matrix large enough to hold N frames
%	of a movie based on the current figure window.  The matrix has
%	enough rows to store N copies of the output from GETFRAME, one
%	in each column.  MOVIEIN is a simple M-file that contains the 
%	single line: M = zeros(length(getframe),n).
%	
%	Example:  To generate a movie with n frames,
%
%	    M = moviein(n);
%	    for j=1:n
%	       plot_command
%	       M(:,j) = getframe
%	    end
%	    movie(M)
%
%	See also MOVIE, GETFRAME.

%	Copyright (c) 1984-93 by The MathWorks, Inc.

M = zeros(length(getframe),n);
