Matlab Help: Save movie as avi
I need to save my animation as an avi. The avi2movie function is not working correctly, and I have not done this for a 2-dimensional nest model (i,j) and time loop (n). I am pasting below the code I use to produce my animation- I need an avi because printing to screen takes a large amount of run time, and I need the animations for a presentation.
temp2 = mod(n,100)
if temp2 == 0
V = V + 1
surf(x,yxzold,qold)
title (['time is ' num2str(tim(n)/60) 'min'])
colormap jet
colorbar
caxis([0 1])
axis ([0 350 0 550 0 3])
Mov(V) = getframe;
end
end % ends time loop
movie2avi does not work. Any help would be much appreciated!
Thanks!
Susan Meredith
temp2 = mod(n,100)
if temp2 == 0
V = V + 1
surf(x,yxzold,qold)
title (['time is ' num2str(tim(n)/60) 'min'])
colormap jet
colorbar
caxis([0 1])
axis ([0 350 0 550 0 3])
Mov(V) = getframe;
end
end % ends time loop
movie2avi does not work. Any help would be much appreciated!
Thanks!
Susan Meredith
0