matlab怎么根据曲面方程画出曲面?方程如下 该怎么编程?画出来应该是个螺旋曲面h=k/40; v = (u*cos(0.1847)*40+sin(0.1847)*(u*cos(k)+65*sin(k)-200))/sin(k);x0=u;y0=v*sin(0.1847)-65;z0=v*cos(0.1847);x1=-cos(k)*cos(h)*x0+sin(k)*
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 22:32:08
matlab怎么根据曲面方程画出曲面?方程如下 该怎么编程?画出来应该是个螺旋曲面h=k/40; v = (u*cos(0.1847)*40+sin(0.1847)*(u*cos(k)+65*sin(k)-200))/sin(k);x0=u;y0=v*sin(0.1847)-65;z0=v*cos(0.1847);x1=-cos(k)*cos(h)*x0+sin(k)*
matlab怎么根据曲面方程画出曲面?方程如下 该怎么编程?画出来应该是个螺旋曲面
h=k/40;
v = (u*cos(0.1847)*40+sin(0.1847)*(u*cos(k)+65*sin(k)-200))/sin(k);
x0=u;
y0=v*sin(0.1847)-65;
z0=v*cos(0.1847);
x1=-cos(k)*cos(h)*x0+sin(k)*cos(h)*y0-sin(h)*z0+200*cos(h);
y1=cos(k)*sin(h)*x0-sin(k)*sin(h)*y0-cos(h)*z0-200*sin(h);
z1=-sin(k)*x0-cos(k)*y0;
其中143.544
matlab怎么根据曲面方程画出曲面?方程如下 该怎么编程?画出来应该是个螺旋曲面h=k/40; v = (u*cos(0.1847)*40+sin(0.1847)*(u*cos(k)+65*sin(k)-200))/sin(k);x0=u;y0=v*sin(0.1847)-65;z0=v*cos(0.1847);x1=-cos(k)*cos(h)*x0+sin(k)*
[u,k]=meshgrid(143.544:0.01:157.921,(0.0402:0.01:0.2176)*pi);
h=k/40;
v=(u*cos(0.1847)*40+sin(0.1847)*(u.*cos(k)+65*sin(k)-200))./sin(k);
x0=u;
y0=v*sin(0.1847)-65;
z0=v*cos(0.1847);
x1=-cos(k).*cos(h).*x0+sin(k).*cos(h).*y0-sin(h).*z0+200*cos(h);
y1= cos(k).*sin(h).*x0-sin(k).*sin(h).*y0-cos(h).*z0-200*sin(h);
z1=-sin(k).*x0-cos(k).*y0;
surf(x1,y1,z1)
shading interp