用Matlab画函数图像一、螺旋线1.静态螺旋线a=0:0.1:20*pi;h=plot3(a.*cos(a),a.*siii(a),2.*a,rb71inewidth2);axis(-50,50,-50,50,0,150);gridonset(h代msemode;boD亡TmaikeTsize;22);xlabel(x轴);ylabel(y轴*);zlabel(fz轴);titled静态螺旋线);2动态螺旋线t=0:0.1:10*pi;iT;h=plot3(sm(t(i),cos(t(i),t(i);*7erasemode7nonel);gridonaxis(-22-22035)foxi=2:length(t)set(h/xdatasiii(t(i)/ydatacos(t(i)/zdatat(i);drawnowpause(O.Ol)endhtle(,动态螺旋线(图略)3.圆柱螺旋线t=0:0.1:10*pi;x=r.*cos(t);y=r.*siii(t)