GUI + Fullscreen in Matlab

조회 수: 2 (최근 30일)
John
John 2012년 10월 11일
Hi,
I wondered if it is an efficient way to have full screen with GUI: I looked through this form and on Internet but I get no satisfactory replies. I have tries several solutions like "Maximize", etc. as proposed by many people. Best regards

답변 (1개)

Image Analyst
Image Analyst 2012년 10월 11일
Their website says they don't have a way. You can make it full screen though:
% Enlarge figure to full screen, but not truly maximized.
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);
There may be a java call to do a legitimate maximize.
  댓글 수: 3
Matt Fig
Matt Fig 2012년 10월 11일
편집: Matt Fig 2012년 10월 11일
So, the code does work, it just isn't what you wanted. Your operating system may be the culprit. This is about as good as you are going to get in MATLAB:
f = figure('menu','none');
set(f,'units','normalized','outerpos',[0 0 1 1.2]);
Image Analyst
Image Analyst 2012년 10월 11일
Yair's blog will probably be the most comprehensive discussion of the maximize problem: http://undocumentedmatlab.com/blog/minimize-maximize-figure-window/

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by