Controlling MATLAB figure pop up location?

조회 수: 19 (최근 30일)
Linpeng
Linpeng 2013년 3월 17일
답변: Philip Rund 2020년 12월 7일
Hi, I am working under Ubuntu, using MATLAB 2012a. I am working on other projects (on desktop A of Ubuntu) while running MATLAB to do some experiments (on desktop B of Ubuntu).
The thing is that the program will constantly pop up a new figure showing the status of the experiments. The figures will pop up in my current desktop (desktop A), interrupting my work. I would like to see these figures to check the status of the experiment, but can I configure MATLAB to show the figures in which MATLAB GUI is located (desktop B) instead my current desktop?
Thanks.

답변 (2개)

Linpeng
Linpeng 2013년 3월 17일
I will answer this question myself. Docking the figure pretty much solves my problem.
Just run
set(0,'DefaultFigureWindowStyle','docked')
And the figure window will be docked in MATLAB main GUI instead of popping up.

Philip Rund
Philip Rund 2020년 12월 7일
I had the same issue. Setting negative values (or higher positive values depending on which direction your second monitor/desktop is located) for the figure position worked for me:
figure('Position',[-1000 -1000 1200 500])
The first two numbers are the figure's position on your screen(s) and the second two are the size of the figure

카테고리

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