Hi friends,
I have written a code to make movie using videowriter command. But I am getting error.
close allclear allclctheta=0:0.1:2*pi;vidObj = VideoWriter('testMovie.avi');open(vidObj);for ii=1:100 ii subplot(1,2,1) plot(theta,sin(theta)); subplot(1,2,2) plot(theta,cos(theta)); currFrame=getframe; writeVideo(vidObj,currFrame); close allend close(vidObj);
The error is saying frame is not matching with the previous figure.
Thanks in advance.
Best Answer