After solving your 2D wave equation, assuming your data
is given by U(:,:,:), the following code will generate
a movie called M, convert and save an avi file, test.avi
without any compression, i.e., high resolution movie.
for j = 1:10
pcolor(x, y, U(:,:,j));
shading('interp');
colormap('default');
caxis([zmin zmax]);
M(j) = getframe;
end
movie2avi(M,'test.avi','compression','None')
You will find more options for movie2avi using help command.
Just to see the movie M, refer to "movie" in help.