Make movie from multiframe image
mov = immovie(X,map)
mov = immovie(RGB)
mov = immovie(X,map) returns the movie structure array mov from the images in the multiframe indexed image X with the colormap map. For details about the movie structure array, see the reference page for getframe. To play the movie, call implay.
X comprises multiple indexed images, all having the same size and all using the colormap map. X is an m-by-n-by-1-by-k array, where k is the number of images.
RGB comprises multiple truecolor images, all having the same size. RGB is an m-by-n-by-3-by-k array, where k is the number of images.
An indexed image can be uint8, uint16, single, double, or logical. A truecolor image can be uint8, uint16, single, or double. mov is a MATLAB® movie structure.