Using getframe in Matlab on Windows

2020-04-21 07:47发布

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', 'compression', 'None');. instead of proper avi I get a frozen smashed avi (length 10 sec) which its only frame is this one one. What am I doing wrong?

1条回答
神经病院院长
2楼-- · 2020-04-21 08:07

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:

set(gcf,'Renderer','zbuffer');

Or

opengl('software');
查看更多
登录 后发表回答