作业帮 > 综合 > 作业

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

来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/04/19 06:37:33
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/
请行家解答,谢谢了!
matlab报错One or more output arguments not assigned during cal
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')
这个程序试过了,没有问题了.希望解决了你的问题.