matlab报错One or more output arguments not assigned during cal

问题描述:

matlab报错One or more output arguments not assigned during call to'movie'
matlab语句如下
i=0
for x=0:0.1:2*pi
y=sin(x)
plot(x,y,'r*')
hold on
i=i+1;
F(i)=getframe;
end
Mo=movie(F,2);
movie2avi(Mo,'firsttime.avi','FPS',1)
运行过后会出现:
? Error using ==> movie
One or more output arguments not assigned during call to "movie".
请问这是怎么回事?该如何修改才能生成avi/
请行家解答,谢谢了!
1个回答 分类:综合 2014-09-24

问题解答:

我来补答
clc
i=0;
for x=0:0.1:2*pi
y=sin(x);
plot(x,y,'r*')
hold on
i=i+1;
F(i)=getframe(gcf);
end
% movie(F,2);
movie2avi(F,'first.avi','fps',1, 'compression', 'None')
这个程序试过了,没有问题了.希望解决了你的问题.
 
 
展开全文阅读
剩余:2000
上一页:第九题,详解
下一页:gyyv
也许感兴趣的知识