Matlab cylinder 函数cylinder(axes_handle,...) axes_handle怎么用

来源:学生作业帮助网 编辑:作业帮 时间:2024/08/07 14:56:06
Matlab cylinder 函数cylinder(axes_handle,...) axes_handle怎么用
x[OAǿJCia-Po[Xѧ\P(ZREHP@BmO|]B"O3{Μdv@||˔D͇foW~8!#IR"Ad ؙ,, puP;uG5J`Y;?KVϝZ[7gt} =}<,s-S;WD .Y}g.jYINkE-G42y[ڴk: p't\!@=MQ t<+JW k6{u;@'^Dy y^n+mVjˢ3l{s1OzC-{cʥţIRc:_v/W{YRy9w ;'j9N[6ڝVe޽.f|*s+7g͵Oz]Ksb],+,s|mזUi~@Y]Ef5/™:c$VegPKT^kԿZE#)U3}`.ΉN\_/g=w495~@w1-x^ 7wO)=7zJL'$~i=//+߯w֋%Uy,SP]JGQդb(:AY'yezP/Qt9G0 JYFQ!,4l2<( 44/؈fY:C)c$rT(XBKEA:ȄDf$@ \D ,x\`_ Ȧ

Matlab cylinder 函数cylinder(axes_handle,...) axes_handle怎么用
Matlab cylinder 函数
cylinder(axes_handle,...) axes_handle怎么用

Matlab cylinder 函数cylinder(axes_handle,...) axes_handle怎么用
axes_handle用于指定绘图的坐标系.
MATLAB可以同时打开多个窗口(figure),而每个窗口有可以有多个坐标系(aexs).
系统在root层有一个CurrentFigure属性,即当前窗口,后续的操作默认会针对于当前窗口进行.当前窗口的句柄可以用gcf获得.
而对于每个窗口而言,相应的有CurrentAxes属性,即当前坐标系,绘图命令如果不指定axes,默认情况下会在当前axes里面进行.当前窗口的句柄可以用gca获得.
 
下面的代码演示了首先创建4个坐标系,然后在4个坐标系中分别绘制旋转体:
for i=1:2,
    for j=1:2,
        ax((i-1)*2+j)=subplot(2,2,(i-1)*2+j);
    end,
end
t = 0:pi/10:2*pi;
for i=1:length(ax),
    cylinder(ax(i),2+cos((rand+1)*t));
end