登录论坛

查看完整版本 : [求助]我是新手,请教大家一个简单的问题


zhouxingli
2009-02-18, 21:30
最近在编一个程序,出现的错误提示:
??? Error using ==> graph3d.surfaceplot.surfaceplot
Invalid input arguments

Error in ==> surf at 81
hh = double(graph3d.surfaceplot(args{:},'parent',cax));

Error in ==> Scan_farfild at 77
surf(t,v,y);


部分程序:Ets=ps22*Et1s+ps23*Ev1s

Evs=ps32*Et1s+ps33*Ev1s;%角度变换后的散射场
[t,v]=meshgrid(-pi:pi/10:pi);
y=abs(Ets)
surf(t,v,y);


其中y显示了结果,呵呵,可能 有点长(只发一部分,是一个关于t和v的函数):y =

abs(((sin(t)^2*cos(v)^2+sin(t)^2*sin(v)^2)^(1/2)*sin(t)+cos(t)*(1-sin(t)^2*cos(v)^2-sin(t)^+sin(v)^)/((sin(t)^2*cos(v)^2+sin(t)^2*si*cos(v)^2+sin(t)^2*sin(v)^2))+1-sin(t)^2*sin(v)^2)))/((sin(t)^2*cos(v)^2+sin(t)^2*sin(v)^2)*(1-sin(t)^2*cos(v)^2/(sin(t)^2*cos(v)^2+sin(t)^2*sin(v)^2))+1-sin(t)^2*sin(v)^2)^(1/2))*sin(t)*cos(v)/(sin(t)^2*cos(v)^2+sin(t)^2*sin(v)^2)^(1/2)))

大家帮我看看为什么画不出图来,谢谢了!

zhouxingli
2009-02-18, 21:31
帮忙看一下这是什么地方错了!:lol: :lol:
谢谢各位了。。