Changeset 956 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jun 22, 2016, 8:10:14 PM (8 years ago)
Author:
sommeria
Message:

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r955 r956  
    784784end
    785785%create avi open
    786 aviobj=avifile(MovieName,'Compression','None','fps',fps);
    787 
     786%aviobj=avifile(MovieName,'Compression','None','fps',fps);
     787
     788aviobj = VideoWriter(MovieName,'Uncompressed AVI');
     789open(aviobj)
    788790%% get info from uvmat and adjust it
    789791huvmat=findobj(allchild(0),'Tag','uvmat');
     
    806808            set(htitle,'String',regexprep(Title,'t=\d+.\d*',['t=' time_str]))
    807809            mov=getframe(figure_movie);
    808             aviobj=addframe(aviobj,mov);
    809     end
    810 end
    811 aviobj=close(aviobj);
     810           % aviobj=addframe(aviobj,mov);
     811            writeVideo(aviobj,mov);
     812    end
     813end
     814close(aviobj);
    812815msgbox_uvmat('CONFIRMATION',{['movie ' MovieName ' created '];['with ' num2str(FrameNumber) ' frames']})
    813816
Note: See TracChangeset for help on using the changeset viewer.