When I generate a movie matrix, F, and try to make an AVI file from it using MOVIE2AVI, I receive an error.
I generate the movie matrix using the code in the documentation for the MOVIE command and then call MOVIE2AVI:
Z = peaks; surf(Z); axis tightset(gca,'nextplot','replacechildren');% Record the movie
for j = 1:20surf(sin(2*pi*j/20)*Z,Z)F(j) = getframe;endmovie2avi(F,'mymovietest.avi')
I then receive an error stating that my file cannot be opened:
??? Error using ==> avi Failed to open file. Error in ==> avifile.avifile at 171 aviobj.FileHandle = avi('open',filename); Error in ==> movie2avi at 63 avimov = avifile(filename,varargin{:});
Best Answer