Unrecognized function or variable 'writevideo'.

조회 수: 3 (최근 30일)
Rabih Sokhen
Rabih Sokhen 2021년 4월 3일
댓글: Rabih Sokhen 2021년 4월 3일
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

채택된 답변

VBBV
VBBV 2021년 4월 3일
%if true
writeVideo(vv,A)
  댓글 수: 2
VBBV
VBBV 2021년 4월 3일
Matlab is case senstitive
Rabih Sokhen
Rabih Sokhen 2021년 4월 3일
thank you, it work now

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by