12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

movieExamples Animate the peaks function as you scale the values of Z:Z = peaks; surf(Z);axis tightset(gca,'nextplot','replacechildren');% Record the moviefor j = 1:20surf(sin(2∗pi∗j/20)∗Z,Z)F(j) = getframe;end% Play the movie twenty timesmovie(F,20)See Alsogetframe, frame1im, im2frame2-303

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

Saved successfully!

Ooh no, something went wrong!