Code to change matlab window size?

조회 수: 8 (최근 30일)
techn
techn 2015년 12월 31일
답변: Jan 2017년 9월 17일
I know how to position a figure window and change its size, but is it possible to change the size and position of the actual matlab application window with code? I would like to do the equivalent of snapping a window to half the screen like that done within winodws OS. This would be done at the start of a script so a user could see both the figure and command window while interacting with the running script.
Thanks for any suggestions

답변 (2개)

Jan
Jan 2017년 9월 17일
CmdWinTool('Position', [1, 100, 800, 800]);
CmdWinTool('YMax'); % maximize vertically

Stephen23
Stephen23 2015년 12월 31일
A much easier alternative would be to dock the figure, which places it within the main MATLAB window and thus makes everything visible at once:

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by