www.gusucode.com > 《matlab图像处理与界面编程宝典》秦襄培 编著,每章的MATLAB源代码程序 > 第4章/代码4-21.txt

    
t=(0:0.02:2)*pi;
x=sin(t);
y=cos(t);
z=cos(2*t);
plot3(x,y,z,'b-',x,y,z,'bd')                 % 绘制三维线性图
view([-82,58]) 
box on,
legend('链 ','宝石 ')                        % 图例标注