% IMAGES2AVI    Generates a MOVIE from an image sequence.
%   M = IMAGES2MOVIE(seq) generates a movie M from the image sequence seq. 
%
% See also SHOWMOVIE.

function M = images2movie(seq)

% write out image frames to movie
for frame = 1:size(seq,4)
    M(frame) = im2frame(seq(:,:,:,frame));
end
