matlab之画图的位置

figure的位置可以通过gcf的Position来制定。

set(gcf,'position',[0,0,100,100])

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

猜你喜欢

转载自blog.csdn.net/yq_forever/article/details/81174799