I have created an avifile in MATLAB 7.0.1 (R14SP1) using the AVIFILE function shown in the code below:
mov = avifile('fn6.avi'); figure line mov = addframe(mov,gcf); pause mov = addframe(mov,gcf); mov = close(mov);
I create a plot and begin to add frames to the movie. If I move the figure around the window I will receive the following error even though the size of the figure has not changed.
Error using ==> avifile.addframe>ValidateFrame Frame must be 560 by 421.
Best Answer