http://blog.163.com/yinhexiwen@126/blog/static/6404826620122942057214/

% figure 窗口最大化,坐标轴也随着窗口变大而相应变大
scrsz = get(0,'ScreenSize');
set(gcf,'Position',scrsz);

或者

set(gcf,'outerposition',get(0,'screensize'));

get(0,'ScreenSize'); 是为了获得屏幕大小,Screensize是一个4元素向量[left, bottom, width, height],然后用获得的screensize向量设置fig的position属性;
get(0) 获取root object(根对象),根对象的所有属性和属性值见:http://www.baisi.net/viewthread.php?tid=6020

例:
To create a figure window that is one quarter the size of your screen and is positioned in the upper left corner, use the root object's ScreenSize property to determine the size. ScreenSize is a four-element vector: [left, bottom, width, height]: 
scrsz = get(0,'ScreenSize');
figure('Position',[1 scrsz(4)/2 scrsz(3)/2 scrsz(4)/2])

其实就是用来获得显示器的尺寸,然后确定新建窗口的位置和大小。

代替subplot:

figure,

axes('position',[0  0.54  0.45  0.45]),imshow(im1),axis off;

axes('position',[0.5  0.54  0.45  0.45]),plotflow(flow),axis off;

axes('position',[0  0.08  0.45  0.45]),plotflow(flow,'mag'),axis off;

axes('position',[0.5  0.08  0.45  0.45]),imshow(imflow),axis off;

最新文章

  1. OpenCascade Chinese Text Rendering
  2. linuxmint 17安装qt5.3.1
  3. 02-Swift初体验
  4. Java SimpleDateFormat使用
  5. Python之路-python数据类型(列表、字典、字符串、元祖)操作
  6. C#AutoResetEvent和ManualResetEvent的区别
  7. Android异常之 unable to write jarlist cache file
  8. Js 的常用方法:页面跳转,Session,类继承
  9. Virtualbox mouse move in and out and file share with windows
  10. echo json数据给ajax后, 需要加上exit,防止往下执行,带上其他数据,到时ajax失败
  11. Python自然语言处理学习笔记之信息提取步骤&分块(chunking)
  12. [leetcode-583-Delete Operation for Two Strings]
  13. C语言预备作业
  14. MYSQL使用方法
  15. mpvue学习笔记-之微信小程序数据请求封装
  16. 十分钟了解HTTPS
  17. 如何 dump jvm 内存及线程栈
  18. 深度学习实践-强化学习-bird游戏 1.np.stack(表示进行拼接操作) 2.cv2.resize(进行图像的压缩操作) 3.cv2.cvtColor(进行图片颜色的转换) 4.cv2.threshold(进行图片的二值化操作) 5.random.sample(样本的随机抽取)
  19. spring-boot项目的新建(出生)
  20. java -d

热门文章

  1. 网易新闻iOS版使用的18个开源组件
  2. android 进程间通信数据(二)------parcel的实现
  3. linux下修改系统时间
  4. python 连接 mysql
  5. SQLPLUS连接oracle
  6. mysql中count(),group by使用
  7. Eclipse中修改SVN用户名和密码方法(转)
  8. Zabbix监控windows部署安装
  9. 《TCP/IP详解 卷一》读书笔记-----动态路由协议
  10. 合工大OJ 1330 种树