Unrecognized function or variable 'writevideo'.

8 ビュー (過去 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 Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by