Unrecognized function or variable 'writevideo'.
5 次查看(过去 30 天)
显示 更早的评论
hello guys
i'm getting this type of error: Unrecognized function or variable 'writevideo' in my following code :
close all
axis tight manual
A = imread('peppers.png');
vv=VideoWriter('C:\Users\User\Desktop\stage m2\test111.mp4','Archival');
vv.VideoCompressionMethod
open(video);
z=101;milieu=51;fi=0;
u=zeros(z,z);
v=zeros(z,z);
u(1,milieu)=1;
xsi=linspace(0,1,z);
for i=1:milieu
n=[-i+1:2:i-1];
nn=length(n);
m=[0:1:i-1];
mm=length(m);
for k=1:z
for n=2:nn-1
for m=1:milieu
v(m+1,n)=(2^-0.5)*((1i*u(m,n-1)*exp(1i*xsi(k)*(abs(u(m,n-1)).^2 ))+v(m,n-1))*exp(1i*xsi(k)*(abs(v(m,n-1)).^2 )));
u(m+1,n)=(2^-0.5)*((u(m,n+1)*exp(1i*xsi(k)*(abs(u(m,n+1)).^2 ))+1i*v(m,n+1))*exp(1i*xsi(k)*(abs(v(m,n+1)).^2 )))*exp(1i*fi*((-1)^m));
[n1,m1]=size(u);
theta= linspace(-2*pi,2*pi,m1);
qu= linspace(-2*pi,2*pi,n1);
subplot(2,2,2);
pcolor(qu/pi,theta/pi,(abs(fft2(v))));
colormap(jet)
shading interp
writevideo(vv,A);
end
end
end
end
close video
% any idea how to fix it how to download this function
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!