Unrecognized function or variable 'writevideo'.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!