File Exchange

image thumbnail

plamovie

version 1.0.0.0 (1.75 KB) by Alex Sanchez
Plays a matlab movie, with the option of using a slider

1 Download

Updated 25 Jul 2006

No License

Editor's Note: This file was a File Exchange Pick of the Week

Plays a matlab movie

USAGE:
playmovie(m,fps,n,option)

EXAMPLES:
playmovie('C:\MATLAB6p5\work\animation.mat')
playmovie(mov,2,1,'slider')
playmovie(mov,1,'fullscreen','slider')

DESCRIPTION:
Plays the movie frames movieframes
n times at frmprsc frames per second
The default values for n and frmprsc are 1 and 2 frames per second movieframes can also be a filename of a .mat file containing the movie frames
The name of the variable does not matter as long as there is only one variable

NOTES:
If option is equal to 'slider' a slider is placed at the bottom of the figure which allows for sections to be played.
If option is equal to 'fullscreen' the movie frames are displayed in a full screen type mode, otherwise frames are displayed in true size.
When using the fullscreen model and the movie ends, press any key to close the figure.
More than one option can be used at the same time.

Cite As

Alex Sanchez (2021). plamovie (https://www.mathworks.com/matlabcentral/fileexchange/11688-plamovie), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Rob Campbell

I wasn't able to get this to work on 2009b. I had to modify line 120 to update it to current standards. I now get improper matrix reference at line 153. Unclear why this should be the case.

chang xin

i'd like to ask can you put the "animation.mat"in your examples together,if it is possible.
for i haven't this mat file ,and can't see the effect of your code ,thx

Gerd Kunert

Requires Image processing Toolbox - this should be stated clearly.

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!