dis=linspace(-10,10,100); steplen=linspace(0,pi,100); for i=1:100 y=dis.*cos(steplen(i)); z=dis.*sin(steplen(i)); x=1-(y.^2+z.^2); plot3(x,y,z); pause(0.01); hold on grid on end
求采纳
dis=linspace(-10,10,100); steplen=linspace(0,pi,100); for i=1:100 y=dis.*cos(steplen(i)); z=dis.*sin(steplen(i)); x=1-(y.^2+z.^2); plot3(x,y,z); pause(0.01); hold on grid on end
求采纳