home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / GRAPHICS.DI$ / MOVIEIN.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  677 b   |  23 lines

  1. function M = moviein(n)
  2. %MOVIEIN Initialize memory for saving movie frames.
  3. %    M = MOVIEIN(N) creates a matrix large enough to hold N frames
  4. %    of a movie based on the current figure window.  The matrix has
  5. %    enough rows to store N copies of the output from GETFRAME, one
  6. %    in each column.  MOVIEIN is a simple M-file that contains the 
  7. %    single line: M = zeros(length(getframe),n).
  8. %    
  9. %    Example:  To generate a movie with n frames,
  10. %
  11. %        M = moviein(n);
  12. %        for j=1:n
  13. %           plot_command
  14. %           M(:,j) = getframe
  15. %        end
  16. %        movie(M)
  17. %
  18. %    See also MOVIE, GETFRAME.
  19.  
  20. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  21.  
  22. M = zeros(length(getframe),n);
  23.