Convert image to movie frame
f = im2frame(X,map)
f = im2frame(X)
If you specify X as an m-by-n array of integers, then im2frame uses the associated colormap, map, where map is a three-column array of values in the range [0,1]. Each row of map is a three-element RGB triplet that specifies the red, green, and blue components of a single color of the colormap.
If you specify X as an m-by-n-by-3 truecolor image, then map is optional and has no effect.
For more information on image types, see Image Types.
Use im2frame to convert a sequence of images into a movie.
F(1) = im2frame(X1,map); F(2) = im2frame(X2,map); ... F(n) = im2frame(Xn,map); movie(F)