matlab画三维图像求大神帮忙
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 18:10:08
matlab画三维图像求大神帮忙
一个三元方程组
sqrt(625-y^2)*(z+26.5)+x*z=0
sqrt(625-y^2)+sqrt((sqrt(625-y^2)-x)^2+z^2)=60
求大神帮忙怎么画出三维图像来.
一个三元方程组
sqrt(625-y^2)*(z+26.5)+x*z=0
sqrt(625-y^2)+sqrt((sqrt(625-y^2)-x)^2+z^2)=60
求大神帮忙怎么画出三维图像来.
一般碰到这么看不出到底是该点乘还是矩阵乘法时,推荐用循环,你的循环次数不是太多,速度完全不是问题.
clear
clc
Q=0.0016;
u=3.35;
H=60;
x = 0:100:3000;
y = 0:100:3000;
for ii = 1:length(x)
for jj = 1:length(y)
a = 0.16*x(ii)/(1+0.0001*x(ii))^0.5;
b=0.12*x(ii);
z1 = Q/pi*u*a*b;
z(ii,jj) = z1*exp((-0.5)*(y(jj)/a)^2)*exp(H^2/(2*b^2));
end
end
surf(x,y,z)
以上回答你满意么?
clear
clc
Q=0.0016;
u=3.35;
H=60;
x = 0:100:3000;
y = 0:100:3000;
for ii = 1:length(x)
for jj = 1:length(y)
a = 0.16*x(ii)/(1+0.0001*x(ii))^0.5;
b=0.12*x(ii);
z1 = Q/pi*u*a*b;
z(ii,jj) = z1*exp((-0.5)*(y(jj)/a)^2)*exp(H^2/(2*b^2));
end
end
surf(x,y,z)
以上回答你满意么?