Matlab的句柄操作.在对句柄进行操作时,不知道句柄的属性的具体名字。比如说:
你要修改fig的大小,首先你得知道它的名字叫‘ScreenSize’,
scrsz = get(0,'ScreenSize');
figure('Position',[1 scrsz(4)/2 scrsz(3)/2 scrsz(4)/2])
那么对于fig 来讲,除了‘ScreenSize‘还有那些属性可以修改?怎么知道它的其他属性?
对于其他图形对象有哪些属性可以修改,它们的名字叫什么?
有热心的网友说Figure properties可以看到。或者通过使用get(h)获得h的所有可设置属性
使用set(h)获得获得h的所有可设置属性及其当前属性值
但是我在属性里没有看到像‘ScreenSize“这样的属性,
get(figure)
Alphamap = [ (1 by 64) double array]
BackingStore = on
CloseRequestFcn = closereq
Color = [0.8 0.8 0.8]
Colormap = [ (64 by 3) double array]
CurrentAxes = []
CurrentCharacter =
CurrentObject = []
CurrentPoint = [0 0]
DockControls = on
DoubleBuffer = on
FileName =
FixedColors = [ (3 by 3) double array]
IntegerHandle = on
InvertHardcopy = on
KeyPressFcn =
MenuBar = figure
MinColormap = [64]
Name =
NextPlot = add
NumberTitle = on
PaperUnits = centimeters
PaperOrientation = portrait
PaperPosition = [0.634517 6.34517 20.3046 15.2284]
PaperPositionMode = manual
PaperSize = [20.984 29.6774]
PaperType = A4
Pointer = arrow
PointerShapeCData = [ (16 by 16) double array]
PointerShapeHotSpot = [1 1]
Position = [360 280 560 420]
Renderer = painters
RendererMode = auto
Resize = on
ResizeFcn =
SelectionType = normal
ShareColors = on
ToolBar = auto
Units = pixels
WindowButtonDownFcn =
WindowButtonMotionFcn =
WindowButtonUpFcn =
WindowStyle = normal
WVisual = 01 (RGB 32 bits(08 08 08 00) zdepth 24, Hardware Accelerated, Opengl, Window)
WVisualMode = auto
BeingDeleted = off
ButtonDownFcn =
Children = []
Clipping = on
CreateFcn =
DeleteFcn =
BusyAction = queue
HandleVisibility = on
HitTest = on
Interruptible = on
Parent = [0]
Selected = off
SelectionHighlight = on
Tag =
Type = figure
UIContextMenu = []
UserData = []
Visible = on
期待各位网友热心帮忙,
谢谢!