How to positon the command window?

조회 수: 2 (최근 30일)
David Koenig
David Koenig 2013년 10월 31일
In response to a question, the following script was presented as an answer:
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
desktopMainFrame = desktop.getMainFrame;
% Get desktop dimensions
desktopDims = desktopMainFrame.getSize;
desktopW = desktopDims.getWidth;
desktopH = desktopDims.getHeight;
% Resize desktop to half of original size
desktopMainFrame.setSize(desktopW/2,desktopH/2);
I used this successfully for changing the size of the window.
Is there a way to position, say, one corner of the re-sized window?
Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by