Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一般来说,我们使用下面的代码创建一个螺旋
t = 0:pi/50:20*pi; st = sin(t); ct = cos(t); plot3(st,ct,t)
使用此代码,生成一个螺旋。你能告诉我是否有任何命令可以看到旋转轴,如下图所示?
由于旋转轴平行于 z 轴,您可以简单地在此处画一条线:
hold on %# do not erase other plot plot([0;0],[0;0],[t(1);t(end)],'k')