答:clear;clc; r=1;%r的值自己改 %柱面部分 t=linspace(0,2*pi,37); q=linspace(-1,1,11); [tt,qq]=meshgrid(t,q); x=r/2*(cos(tt)+1); y=r/2*sin(tt); z=r*sqrt((1-cos(tt))/2).*qq; mesh(x,y,z) hold on %球面部分 p=acos(sin(tt/2)).*qq; xx=r*s...
答:[x1,y1,z1]=sphere(400);xq=2*x1;yq=2*y1;zq=z1*2;mesh(xq,yq,zq)%画球alpha(0.9);holdon[x,y,z]=cylinder(2,400);mesh(x,y,z),%画圆柱alpha(0.2);colormap(jet)plot3(x(1,:),y(1,:),zeros(length(x(1,:))),'k.')%画交线holdoff按上面语句试试
答:[x1,y1,z1]=sphere(400);xq=2*x1;yq=2*y1;zq=z1*2;mesh(xq,yq,zq)%画球alpha(0.9);holdon[x,y,z]=cylinder(2,400);mesh(x,y,z),%画圆柱alpha(0.2);colormap(jet)plot3(x(1,:),y(1,:),zeros(length(x(1,:))),'k.')%画交线holdoff按上面语句试试
答:[x1,y1,z1]=sphere(400); xq=2*x1;yq=2*y1;zq=z1*2; mesh(xq,yq,zq) %画球 alpha(0.9); hold on [x,y,z]=cylinder(2,400); mesh(x,y,z),%画圆柱 alpha(0.2); colormap(jet) plot3(x(1,:),y(1,:),zeros(length(x(1,:))),'k.')%画交线 hold off 按...
答:你看看程序,不懂得可以问我。 %程序 xgrid = -2:0.1:2; ygrid = -2:0.1:2; [x,y] = meshgrid(xgrid,ygrid); z_p = sqrt(x.^2+y.^2); z_n = -sqrt(x.^2+y.^2); mesh(x,y,z_p);%锥面上半部分 hold on; mesh(x,y,z_n);%锥面下半部分 hold on; t=0:...
答:clear;clc; r=1;%r的值自己改 %柱面部分 t=linspace(0,2*pi,37); q=linspace(-1,1,11); [tt,qq]=meshgrid(t,q); x=r/2*(cos(tt)+1); y=r/2*sin(tt); z=r*sqrt((1-cos(tt))/2).*qq; mesh(x,y,z) hold on %球面部分 p=acos(sin(tt/2)).*qq; xx=r*s...
答:平方-2X+Y平方+6Y+10=0 (x²-2x+1)+(y²+6y+9)=0 (x-1)²+(y+3)²=0 x-1=0,x=1 y+3=0,y=-3 xy=-3x1=-3 很高兴为您解答,
答:程序如下: t=0:pi/20:2*pi;x=sin(t)*2;y=cos(t)*2;z=linspace(-5,5,length(t));X=meshgrid(x);Y=meshgrid(y);Z=[meshgrid(z)]';mesh(X,Y,Z)%第一个圆柱面xlabel('x')ylabel('y')zlabel('z')hold onx1=sin(t)*2;z1=cos(t)*2;y1=linspace(-5,5,le...
答:如图所示:费时10小时。 红色部分的表面积为4.75
答:t=0:pi/20:2*pi; x=sin(t)+1; y=cos(t); z=linspace(-4,4,length(t)); X=meshgrid(x);Y=meshgrid(y);Z=[meshgrid(z)]'; mesh(X,Y,Z)%第一个圆柱面 xlabel('x') ylabel('y') zlabel('z') axis equal