Unrecognized function or variable 'writevideo'.

4 Ansichten (letzte 30 Tage)
Rabih Sokhen
Rabih Sokhen am 3 Apr. 2021
Kommentiert: Rabih Sokhen am 3 Apr. 2021
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

Akzeptierte Antwort

VBBV
VBBV am 3 Apr. 2021
%if true
writeVideo(vv,A)
  2 Kommentare
VBBV
VBBV am 3 Apr. 2021
Matlab is case senstitive
Rabih Sokhen
Rabih Sokhen am 3 Apr. 2021
thank you, it work now

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by