Matlab focus stealing behaviour with versions >2020a

10 次查看(过去 30 天)
Hello
I'm working constantly on matlab (macOS) and recently updated from version 2020a to 2021a. Prior to this change when running matlab and plotting figures, matlab was operating on long script and continued to pop new figures; but without taking the focus off other applications (works on 2016-2020a ; not tested 2021b). Since the update; new figures are displayed "above" the current working application (preventing me to work on other tasks while awaiting calculation finalization; each time I get back to write back in command window rather than on mails/word/googledocs etc...).
I know that this behavior could be supressed (apparently this was the case in my prior installations).... but how to proceed
(because of this, i volontarily downgraded back to 2020a....)
thanks in advance

回答(1 个)

Animesh
Animesh 2024-5-16
Hi Fabien,
I understand that you are having trouble with MATLAB figures taking focus away from your other tasks.
You can try setting the visible property to 'off'. This will prevent MATLAB from stealing focus.
Example -
h = figure('Visible','off');
plot(rand(1,100));
set(h,'Visible','on');
To read more about it, please refer to the following link -
I hope I was able to help you.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by