1 / 5

Matlab Graphics

Introduction to Matlab:. Matlab Graphics. Animated Movies. S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn. Matlab Movies. A Movie is stored as a sequence of Frames. A Frame is a graph or a picture stored as a matrix or array.

laasya
Download Presentation

Matlab Graphics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Matlab: Matlab Graphics Animated Movies S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn

  2. Matlab Movies • A Movie is stored as a sequence of Frames • A Frame is a graph or a picture stored as a matrix or array

  3. Number of Frames per Sec Number of Times Movie is Played Matrix Storing entire set of Frames Movie Command • Let m be a matrix of Frames • Each Frame occupies one column of m movie( m, n, fps )

  4. 16-Frame Example • m = moviein(n) creates a matrix to hold n frames of a movie based on the current axis. • m(:,j) = getframe returns a column vector with one movie frame. The frame is a snapshot of the current figure axis. m = moviein(16); % Reserve 16 frames for j=1:16 plot(fft(eye(j+16))); % Draw a Figure m(:,j)=getframe; % Make it a frame end

  5. Movie Frames » movie(m,1,2)

More Related