知道曲线方程 怎么用matlab绘制三维图 一定要给出程序
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/23 17:06:44
知道曲线方程 怎么用matlab绘制三维图 一定要给出程序
P1-P10已知 z=(p1+p3*Ln(x)+p5*y+p7*(Ln(x))^2+p9*y^2+p11*y*Ln(x))/(1+p2*Ln(x)+p4*y+p6*(Ln(x))^2+p8*y^2+p10*y*Ln(x))
p1=-27.6688658877714
p2=-0.0130414216785649
p3=1.08740445793226
p4=-0.0395723510493093
p5=7.7358322079592
p6=0.600559023856689
p7=5.90909721626388
p8=0.0418417410727037
p9=-0.0228637389109059
p10=-0.353762822277213
p11=-3.61764465068954 x轴取值范围9-18 y轴取值范围4-10 z轴取值范围2-10
P1-P10已知 z=(p1+p3*Ln(x)+p5*y+p7*(Ln(x))^2+p9*y^2+p11*y*Ln(x))/(1+p2*Ln(x)+p4*y+p6*(Ln(x))^2+p8*y^2+p10*y*Ln(x))
p1=-27.6688658877714
p2=-0.0130414216785649
p3=1.08740445793226
p4=-0.0395723510493093
p5=7.7358322079592
p6=0.600559023856689
p7=5.90909721626388
p8=0.0418417410727037
p9=-0.0228637389109059
p10=-0.353762822277213
p11=-3.61764465068954 x轴取值范围9-18 y轴取值范围4-10 z轴取值范围2-10
怎么还有一个p11呀,我直接认为是p1了哦
%by dynamic
%2009.2.16
%
p=[-27.6688658877714
-0.0130414216785649
1.08740445793226
-0.0395723510493093
7.7358322079592
0.600559023856689
5.90909721626388
0.0418417410727037
-0.0228637389109059
-0.353762822277213
-3.61764465068954 ];
xx=8:0.1:19;%自己数输入横坐标的范围
yy=3:0.1:11;%自己输入纵坐标的范围
[x,y]=meshgrid(xx,yy);
z=(p(1)+p(3)*log(x)+p(5)*y+p(7)*(log(x)).^2+p(9)*y.^2+p(1)*y.*log(x))./(1+p(2)*log(x)+p(4)*y+p(6)*(log(x)).^2+p(8)*y.^2+p(10)*y.*log(x));
mesh(x,y,z)
%axis([9 18 4 10 2 10])%这个没有必要,否则图形很难看的哦
%by dynamic
%2009.2.16
%
p=[-27.6688658877714
-0.0130414216785649
1.08740445793226
-0.0395723510493093
7.7358322079592
0.600559023856689
5.90909721626388
0.0418417410727037
-0.0228637389109059
-0.353762822277213
-3.61764465068954 ];
xx=8:0.1:19;%自己数输入横坐标的范围
yy=3:0.1:11;%自己输入纵坐标的范围
[x,y]=meshgrid(xx,yy);
z=(p(1)+p(3)*log(x)+p(5)*y+p(7)*(log(x)).^2+p(9)*y.^2+p(1)*y.*log(x))./(1+p(2)*log(x)+p(4)*y+p(6)*(log(x)).^2+p(8)*y.^2+p(10)*y.*log(x));
mesh(x,y,z)
%axis([9 18 4 10 2 10])%这个没有必要,否则图形很难看的哦