Matlab Help: Save movie as avi

sumeho

sumeho

@sumeho-eepe7C Oct 24, 2024
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

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • sumeho

    sumeho

    @sumeho-eepe7C Nov 21, 2009

    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!