谁能帮我看看这段matlab计算程序啊?小白始终有各种错.n1=1.41;n2=1.3476;r=[0.75:0.01:1.15];derta=2.5;lamda=0.496;x=1-(n2/n1).^2V=sqrt((2*pi*r*n1/lamda).^2*x)U=2.405*exp(-(1-x/2).*V)W=sqrt(V.^2-U.^2)p=sqrt(x).*U.^2*besselk(0,W.*derta/
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/08 13:35:27
![谁能帮我看看这段matlab计算程序啊?小白始终有各种错.n1=1.41;n2=1.3476;r=[0.75:0.01:1.15];derta=2.5;lamda=0.496;x=1-(n2/n1).^2V=sqrt((2*pi*r*n1/lamda).^2*x)U=2.405*exp(-(1-x/2).*V)W=sqrt(V.^2-U.^2)p=sqrt(x).*U.^2*besselk(0,W.*derta/](/uploads/image/z/12676964-68-4.jpg?t=%E8%B0%81%E8%83%BD%E5%B8%AE%E6%88%91%E7%9C%8B%E7%9C%8B%E8%BF%99%E6%AE%B5matlab%E8%AE%A1%E7%AE%97%E7%A8%8B%E5%BA%8F%E5%95%8A%3F%E5%B0%8F%E7%99%BD%E5%A7%8B%E7%BB%88%E6%9C%89%E5%90%84%E7%A7%8D%E9%94%99.n1%3D1.41%3Bn2%3D1.3476%3Br%3D%5B0.75%3A0.01%3A1.15%5D%3Bderta%3D2.5%3Blamda%3D0.496%3Bx%3D1-%28n2%2Fn1%29.%5E2V%3Dsqrt%28%282%2Api%2Ar%2An1%2Flamda%29.%5E2%2Ax%29U%3D2.405%2Aexp%28-%281-x%2F2%29.%2AV%29W%3Dsqrt%28V.%5E2-U.%5E2%29p%3Dsqrt%28x%29.%2AU.%5E2%2Abesselk%280%2CW.%2Aderta%2F)
谁能帮我看看这段matlab计算程序啊?小白始终有各种错.n1=1.41;n2=1.3476;r=[0.75:0.01:1.15];derta=2.5;lamda=0.496;x=1-(n2/n1).^2V=sqrt((2*pi*r*n1/lamda).^2*x)U=2.405*exp(-(1-x/2).*V)W=sqrt(V.^2-U.^2)p=sqrt(x).*U.^2*besselk(0,W.*derta/
谁能帮我看看这段matlab计算程序啊?小白始终有各种错.
n1=1.41;
n2=1.3476;
r=[0.75:0.01:1.15];
derta=2.5;
lamda=0.496;
x=1-(n2/n1).^2
V=sqrt((2*pi*r*n1/lamda).^2*x)
U=2.405*exp(-(1-x/2).*V)
W=sqrt(V.^2-U.^2)
p=sqrt(x).*U.^2*besselk(0,W.*derta/r).
q=r*V.^3*besselk(1,W).^2
c=p/q
%c=(sqrt(x).*U.^2*besselk(0,W.*derta/r).)/(r*V.^3*besselk(1,W).^2)
plot(r,c)
grid on
谁能帮我看看这段matlab计算程序啊?小白始终有各种错.n1=1.41;n2=1.3476;r=[0.75:0.01:1.15];derta=2.5;lamda=0.496;x=1-(n2/n1).^2V=sqrt((2*pi*r*n1/lamda).^2*x)U=2.405*exp(-(1-x/2).*V)W=sqrt(V.^2-U.^2)p=sqrt(x).*U.^2*besselk(0,W.*derta/
n1=1.41;
n2=1.3476;
r=0.75:0.01:1.15;
derta=2.5;
lamda=0.496;
x=1-(n2/n1)^2;
V=2*pi*r*n1/lamda*sqrt(x);
U=2.405*exp(-(1-x/2)*V);
W=sqrt(abs(V.^2-U.^2));
p=sqrt(x).*U.^2.*besselk(0,W.*derta./r);
q=r.*V.^3.*besselk(1,W).^2;
c=p./q;
%c=(sqrt(x).*U.^2*besselk(0,W.*derta/r).)/(r*V.^3*besselk(1,W).^2)
plot(r,c)
grid on
按上面语句试试