[討論] imshow 解析度為1920*1080的測試圖形已回收

看板MATLAB作者 (愛世代)時間13年前 (2011/03/29 15:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
各位大家好! 首先說明一下,我的螢幕目前的解析度可達1680*1050。 我想要藉由一個M*N*1的矩陣產生一個1920*1080的黑白線條交錯的畫面。 使用imshow這個函數將畫面完整的秀出來。 以下目前是我參考網路寫出的一個小程式 clear, close all img(1:1920,1:1080,1)=255; % Prepare a white image(設定一個全白矩陣) for i=1:2:1080 % Run row by row(一次處理一行) img(:,i,1)=0; % Set color valur o end imshow(img,[0 255],'Border','tight') % Show image(顯示影像) **********加上我在網路上找到這一段程式幾乎可全螢幕顯示********** %% 以下程式碼等於選取figure properties,選取 eport setup 再選取 expand axes to %fill figure fig = gcf; get(fig); style = hgexport('factorystyle'); style.Bounds = 'tight'; hgexport(fig,'-clipboard',style,'applystyle', true); drawnow; %% 對繪圖視窗的控制 set(fig,'windowstyle','modal'); set(fig,'position',[0,0,1920,1080]); get(fig) ******************************************** 這一行set(fig,'windowstyle','modal'); 我滿有疑問的,我目前只知道用了這一行連toolbar都可以關掉。 可是接下就無法進command window操作,也無法進edittor 編輯。 感覺上整個MATLAB好像當在那邊 最後用get(fig)去看'position' 顯示如下 Position = [0 0 1684 1035] 我以為用set(fig,'position',[0,0,1920,1080]); 跑出來的值會接近我想要的值的說 ************************************** 我晚點會找一台fullhd的螢幕作測試看看。 有網友作過類似的研究嗎???? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.21.111
文章代碼(AID): #1DaOIJ0s (MATLAB)