which command is for making desktop layout in default form but matlab window be maximize (full screen)

10 ビュー (過去 30 日間)
which command is for making desktop layout in default form but matlab window be maximize (full screen)
in matlab: 'Desktop'>>desktop layout>>default
but i need run this from command window and also after that window of matlab be maximized

採用された回答

Jan
Jan 2011 年 9 月 21 日
編集済み: Jan 2021 年 9 月 9 日
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
desktop.restoreLayout('Default');
pause(0.1); % Voodoo
desktop.getMainFrame.setMaximized(1);
Some further commands to influence the command window: FEX: CmdWinTool
  5 件のコメント
Royi Avital
Royi Avital 2019 年 10 月 9 日
Doesn't seem to work on R2019b.
Usman Ali
Usman Ali 2021 年 9 月 9 日
Still works fine on R2020b.Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by