MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   如何画三维隐函数的图 (https://www.labfans.com/bbs/showthread.php?t=5877)

lv19860312 2008-12-16 21:31

如何画三维隐函数的图
 
有下面一个程序:
syms x y z w0 lad m
x=-0.005:0.0001:0.005;
y=-0.005:0.0001:0.005;
z=-100:2:100;
m=1;
w0=2*10^-3;
lad=632*10^-9;
k=2*pi/lad;
w=sqrt(w0^2+4*z.^2/k^2*w0^2);
R=z+k^2*w0^4./(4*z);
u=(w0./w).*(sqrt(x.^2+y.^2)./w).^abs(m).*exp(-(x.^2+y.^2)./w.^2).*exp(i*m*atan(y./x)) .*exp(0.5*i*k*(x.^2+y.^2)/R).*exp(-i*(abs(m)+1)*atan(2*z/(k*w0^2)));
请教高手怎么画出u的三维图来!我surfc等一些函数都画不出来。


所有时间均为北京时间。现在的时间是 15:18

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.