matlab报错One or more output arguments not assigned during call to'movie'matlab语句如下i=0for x=0:0.1:2*piy=sin(x)plot(x,y,'r*')hold oni=i+1;F(i)=getframe;endMo=movie(F,2);movie2avi(Mo,'firsttime.avi','FPS',1)运行过后会出现:? Error usi
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/12 02:39:25
matlab报错One or more output arguments not assigned during call to'movie'matlab语句如下i=0for x=0:0.1:2*piy=sin(x)plot(x,y,'r*')hold oni=i+1;F(i)=getframe;endMo=movie(F,2);movie2avi(Mo,'firsttime.avi','FPS',1)运行过后会出现:? Error usi
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 call to'movie'matlab语句如下i=0for x=0:0.1:2*piy=sin(x)plot(x,y,'r*')hold oni=i+1;F(i)=getframe;endMo=movie(F,2);movie2avi(Mo,'firsttime.avi','FPS',1)运行过后会出现:? Error usi
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')
这个程序试过了,没有问题了.希望解决了你的问题.