figure的位置可以通过gcf的Position来制定。
set(gcf,'position',[0,0,100,100])
需要注意两点:
- [0,0,100,100] 是按照[left bottom width height]的顺序的。第一个和第二个是指离left和离bottom的距离。
- position参数不包括图窗边框、标题栏、菜单栏和工具栏。否则可以使用OuterPosition。
figure的位置可以通过gcf的Position来制定。
set(gcf,'position',[0,0,100,100])
需要注意两点:
- [0,0,100,100] 是按照[left bottom width height]的顺序的。第一个和第二个是指离left和离bottom的距离。
- position参数不包括图窗边框、标题栏、菜单栏和工具栏。否则可以使用OuterPosition。