CrazyEngineers
  • Matlab Help: Save movie as avi

    sumeho

    sumeho

    @sumeho-eepe7C
    Updated: Oct 24, 2024
    Views: 1.1K
    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
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • sumeho

    MemberNov 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!
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register