How can i solve the error Undefined function 'cxroot' for input arguments of type 'char'.?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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)
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Live Scripts and Functions 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!