junjun123129 发表于 2009-5-7 14:02

请问“Movie contains uninitialized frames”是什么错误

for j=1:4:40
surf(x1(:,:,j),z1(:,:,j),p1(:,:,j))
view(0,90)
shading interp
set(gca,'fontsize',30)
set(colorbar,'fontsize',30)
grid on
f(j)=getframe;
end
movie(f,2,10)
这是小弟一段程序,在运行时总是有“Movie contains uninitialized frames”的错误,请问是什么错误,谢谢赐教!

[ 本帖最后由 ChaChing 于 2009-5-9 00:12 编辑 ]

friendchj 发表于 2009-5-7 17:41

原帖由 junjun123129 于 2009-5-7 14:02 发表 http://www.chinavib.com/forum/images/common/back.gif
%%%
i=1;
%%%
for j=1:4:40
surf(x1(:,:,j),z1(:,:,j),p1(:,:,j))
view(0,90)
shading interp
set(gca,'fontsize',30)
set(colorbar,'fontsize',30)
grid on
%%%%%%%%%%%%
f(i)=getframe;
i=i+1;
%%%%%%%%%%%%
end
movie(f,2,10)
这是小弟一段程序,在运行 ...
看红色部分

wwbeyondww 发表于 2009-5-8 12:01

or try:f(ceil(j/4))=getframe;
页: [1]
查看完整版本: 请问“Movie contains uninitialized frames”是什么错误