Move all figures to a specific monitor?

조회 수: 31 (최근 30일)
Xingwang Yong
Xingwang Yong 2019년 11월 29일
댓글: Rik 2019년 12월 4일
I have two monitors, I prefer to write code on primary monitor and view figures on secondary monitor. I have managed to make the newly generated figure display on secodary screen by setting properties of the root object in startup.m.
set(0, 'DefaultFigurePosition', [-1120, 538, 560, 420]); %make the new figure display on a second screen, hard-encode the positions
However, when I double-click a figure that was previously saved in .fig format in the file explorer, the figure would display on primary monoitor.
Is there any way can avoid this? Or, can I move all the figures on primary monitor to secondary monitor with their relative positions unchanged?

답변 (2개)

Xingwang Yong
Xingwang Yong 2019년 12월 2일
Dose anyone know how to accomplish this?

Dhananjay Kumar
Dhananjay Kumar 2019년 12월 4일
  댓글 수: 1
Rik
Rik 2019년 12월 4일
This could help, although normally the position is one of the properties that are stored in the fig file, so this cannot be applied directly.

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

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by