I used the code which I asked about here but added in the final loop the ani(ii)=getframe; and after the loop movie2avi(ani, \'orbeeit.avi\', \'compressi
ani(ii)=getframe;
movie2avi(ani, \'orbeeit.avi\', \'compressi
This problem is probably caused by Windows Vista (and newer) in conjunction with certain graphics drivers as described in this bug report.
You can change the renderer after you created the figure:
renderer
set(gcf,'Renderer','zbuffer');
Or
opengl('software');