Different desktops under windows 10

Under Windows 10, I put Matlab in the desktop 2 and kept desktop 1 for other stuff. If I launch a script in matlab and then move to desktop 1, the figures will appear in desktop 1. This is not very convenient. Is there a way to stick the figures to the desktop to which the Matlab command window belongs ? Thanks in advance.

6 Comments

The link is now dead. Can you let me know what the solution is? Thanks
no idea on my side but I guess this is more a Windows problem: if you open a pdf and that Acrobat is openend on a different desktop, you will switch automatically to the desktop where acrobat is openend. Seems to be the opposite of what I describe above but actually, I have the feeling that Windows just does not know to open a window on a different desktop in the background. This would explain the behavior of all those softwares.
At the moment MATLAB is not qualified against virtual desktops. At this time, it is not possible to specify virtual desktop to create or open a figure window. Creating or opening a figure will cause a window to appear in the active virtual desktop.
You can try one of these two workarounds:
1. Set the "WindowStyle" attribute of the figure into "docked", which will force the figure to show up in the MATLAB window.
2. Set the "Visible" attributes of the figure into "off", thus the window of the figure will not be created. If you later want to display each figure, you could set "Visible" to "on" for the figure you want to show.
Apologies, this should have been a comment, not an answer.
Five years have passed. Is current Matlab qualified against virtual desktops on Windows 10? It would be great if new figure windows would by default be created on the virtual desktop where Matlab is used, and not on the currently active one.
Are there any plans for such a feature?
Hello from the future, I also have trouble with current Matlab on Windows 10 virtual Desktops.
Matlab is the only software that always moves to the first virtual desktop on its own, after I wake my machine from standby. I guess it could have to do with the issue that you repot.

Sign in to comment.

Answers (1)

WIN + CTRL + LEFT/RIGHT: Switch to previous or next desktop. WIN + CTRL + D: Create a new desktop. WIN + CTRL + F4: Close the current desktop. WIN + TAB: Launch task view
Morteza Hajitabar Firuzjaei

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Asked:

on 19 Jan 2016

Commented:

on 6 Nov 2023

Community Treasure Hunt

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

Start Hunting!