日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

matlab figure 窗口最大化

發布時間:2023/12/31 综合教程 34 生活家
生活随笔 收集整理的這篇文章主要介紹了 matlab figure 窗口最大化 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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;

總結

以上是生活随笔為你收集整理的matlab figure 窗口最大化的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。