How can i solve the error Undefined function 'cxroot' for input arguments of type 'char'.?

2 次查看(过去 30 天)
i =1;
for a = 1.5 : 0.001 : 1.6
lambda11=a.*10^-6;
C=3e8 ;
Epsilond =3.61 ;
W=2*pi*C./lambda11;
K0=2*pi./lambda11;
WP=1.3605e16 ;
gamma=(1.7352e13 );
A=W.^2+1i*gamma*W
Epsilonm=1-((WP*WP)/A);
h=((Epsilonm*Epsilond)/(Epsilonm+Epsilond));
beta=K0*sqrt(h);
neff=beta/K0 ;
lambda1(i)=lambda11 ;
neff1(i)=real(neff);
i =i+1;
end
global lambda ;
Nmax=50;
tol =5.1*10^6 ;
h=1.88;
i =1;
for a=1.5:0.01:1.6
lambda=a.*10^-6;
x1=cxroot('project',h);
y=x1;
y1(i)=real(x1);
y2(i)=imag(x1);
lambda12(i)=lambda;
i=i+1;
end
plot(lambda1,neff1,lambda12, y1)

回答(1 个)

Walter Roberson
Walter Roberson 2018-5-30

类别

Help CenterFile Exchange 中查找有关 Live Scripts and Functions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by