I am just executing the following example to create a avi movie. After it's done, I cannot rename the file because Windows claims Matlab still has it "open".
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');
What's a good way to break that connection?
Thank you. Dave
Best Answer