李星萱 发表于 2012-11-21 20:04

求助matlab程序错误,不知道怎么改了求高手谢谢谢谢谢谢

clear all;
syms A t x lamdap lamdas lamdai np ns niB ;
a1=5.756;
a2=0.0983;
a3=0.2020;
a4=189.32;
a5=12.52;
a6=1.32e-2;
b1=2.860e-6;
b2=4.700e-8;
b3=6.113e-8;
b4=1.156e-4;
A=29;
t=100;
f=50647;
lamdap=1.064;
lamdas=x;
x=1.065:0.01:3.2;
lamdai=1.064.*lamdas./(lamdas-1.064);
np=sqrt(a1+b1.*f+(a2+b2.*f)./(1.064.^2-(a3+b3.*f).^2)+(a4+b4.*f)./(1.064.^2-a5.^2)-a6*1.064.^2);
ns=sqrt(a1+b1.*f+(a2+b2.*f)./(lamdas.^2-(a3+b3.*f).^2)+(a4+b4.*f)./(lamdas.^2-a5.^2)-a6.*lamdas.^2);
ni=sqrt(a1+b1.*f+(a2+b2.*f)./(lamdai.^2-(a3+b3.*f).^2)+(a4+b4.*f)./(lamdai.^2-a5.^2)-a6.*lamdai.^2);
B=0:0.01:(60/pi).*180;
B=sqrt(2.*(np./lamdap-ns./lamdas-ni./lamdai-1./A)./(1./(np.*lamdap)-1./(ns.*lamdas)-lamdai./ni.*(1./lamdap+1./lamdas).^2));
ezplot(B,)
我想请教一下子这个程序应该怎么改求帮助

happy 发表于 2012-11-22 20:31

B的类型与ezplot的输入类型要求不符
页: [1]
查看完整版本: 求助matlab程序错误,不知道怎么改了求高手谢谢谢谢谢谢