Hi,
I was wondering if there's a snippet of code that can save movies smaller than the typical avi? My system cannot find any codecs, so I thought mp4 would be better. But that's getting complex fast as I read about it. Here' my sample:
Z = peaks;surf(Z)axis tight manualax = gca;ax.NextPlot = 'replaceChildren';loops = 40;F(loops) = struct('cdata',[],'colormap',[]);for j = 1:loops X = sin(j*pi/10)*Z; surf(X,Z) drawnow F(j) = getframe(gcf);endfig = figure;movie(fig,F,2);movie2avi(F, 'awesomeMovie', 'compression', 'None');
Seems videowriter may have potential, but I cannot find an example I understand, based on my example above.
Hoping for some help, and thank you. Dave
Best Answer