.
WindowStyle: 'normal'
WVisual: '00 (RGB 32 GDI, Bitmap, Window)' WVisualMode: 'auto' >> h2=get(10) h2 = 8
Alphamap: [1x64 double] BeingDeleted: 'off' BusyAction: 'queue' ButtonDownFcn: '' Children: 342.0011 Clipping: 'on'
CloseRequestFcn: 'closereq' Color: [0.8000 0.8000 0.8000] Colormap: [64x3 double] CreateFcn: ''
CurrentAxes: 342.0011 CurrentCharacter: '' CurrentObject: [] CurrentPoint: [0 0] DeleteFcn: '' DockControls: 'on' FileName: ''
FixedColors: [10x3 double] HandleVisibility: 'on'
Word资料
.
HitTest: 'on' IntegerHandle: 'on' Interruptible: 'on' InvertHardcopy: 'on' KeyPressFcn: '' KeyReleaseFcn: '' MenuBar: 'figure' MinColormap: 64 Name: '' NextPlot: 'add' NumberTitle: 'on'
PaperOrientation: 'portrait'
PaperPosition: [0.6345 6.3452 20.3046 15.2284] PaperPositionMode: 'manual' PaperSize: [20.9840 29.6774] PaperType: 'A4' PaperUnits: 'centimeters' Parent: 0 Pointer: 'arrow'
PointerShapeCData: [16x16 double] PointerShapeHotSpot: [1 1] Position: [440 378 560 420] Renderer: 'painters' RendererMode: 'auto'
Word资料
.
Resize: 'on' ResizeFcn: '' 9
Selected: 'off'
SelectionHighlight: 'on' SelectionType: 'normal' Tag: '' ToolBar: 'auto' Type: 'figure' UIContextMenu: [] Units: 'pixels' UserData: [] Visible: 'on'
WindowButtonDownFcn: '' WindowButtonMotionFcn: '' WindowButtonUpFcn: '' WindowKeyPressFcn: '' WindowKeyReleaseFcn: '' WindowScrollWheelFcn: '' WindowStyle: 'normal'
WVisual: '00 (RGB 32 GDI, Bitmap, Window)' WVisualMode: 'auto'
4 输入h.Children,观察结果。 >> h.Children
Word资料
.
ans = 1 10
5 键入gcf,得到当前图像句柄的值,分析其结果与h,h1,h2中哪个一致,为什么? ans =
1
结果与h的一致
6 鼠标点击Figure 1窗口,让其位于前端,在命令行中键入gcf,观察此时的值,和上一步中有何不同,为什么?
ans = 1
7 观察h1.Children和h2.Children,gca的值。 >> h1.Children ans = 170.0012 10
>> h2.Children ans = 342.0011 >> gca ans = 170.0012
8 观察以下程序结果h3=h1.Children;
set(h3,'Color','green');h3_1=get(h3,'children');set(h3_1,
Word资料
相关推荐: