PDA

查看完整版本 : [求助]借人气弱弱请那位大哥帮帮忙吧,谢谢了


leej14291
2008-05-30, 19:35
z=12*x(0.367次方)*y(0.298次方)怎样做图啊?谢谢大哥了:)
我写的怎么也做不出图来。

x=1:0.01:2;
y=1:0.01:2;
z=12*x.^0.367+y.^0.298;
plot3(x,y,z)

fgabertb
2008-05-30, 19:39
x=1:0.01:2;
y=1:0.01:2;
[xx yy]=meshgrid(x,y);
z=12*xx.^0.367+yy.^0.298;
mesh(xx,yy,z)
:smile:

leej14291
2008-05-30, 19:44
谢谢了,初学菜鸟不要见笑。呵呵