Size and position of command window on screen

조회 수: 8 (최근 30일)
Joseph Conny
Joseph Conny 2012년 2월 15일
답변: Nipun 2022년 7월 4일
During startup, I would like to 1) undock the Matlab desktop windows, 2) turn off all Matlab windows except the command window, and 3) establish the size and position of the command window on my screen. I would like to do this all in startup.m rather than matlabrc.m.
Is this possible? If so, what commands do I use? Does this involve merely involve adding option switches to the matlab.exe command line in startup.m? If so, what switches would I use? If I cannot do this in startup.m, can it be done in matlabrc.m?
Thank you for your responses.

답변 (3개)

Titus Edelhofer
Titus Edelhofer 2012년 2월 15일
Hi Joseph,
if you only want to use the command window you might just start MATLAB without the desktop
matlab -nodesktop
Add this as parameter to your MATLAB icon.
Titus
  댓글 수: 1
Titus Edelhofer
Titus Edelhofer 2012년 2월 15일
편집: Jan 2015년 5월 5일
To position the command window initially I guess the following submissions to the FileExchange should help moving the command window around:

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


Jan
Jan 2012년 2월 15일
This function can set some features of the command window programmatically: CmdWinTool. The "setLayout" and "Position" arguments will be useful.
  댓글 수: 1
Nasser Hosseini
Nasser Hosseini 2022년 3월 1일
Hi!
Is this CmdWinTool supposed to work with the standalone Windows applications? I tried it but the application fails. Are there any other solutions to handle the size and the position of the Windows Command prompt in the compiled standalone applications?

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


Nipun
Nipun 2022년 7월 4일
Hi Joseph,
On windows you can use commands like CmdWinTool with parameters 'setLayout' and 'position'.
Hope that is fine

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by