I often move from a company website to another. Any day, I can only have my laptop or as many as four monitors. With multiple monitors, I donβt know which monitor I will use for the MATLAB main GUI (the main GUI starts when you double-click matlab.exe). It depends on the resolutions of the available monitors.
I use scripts that use software-generated graphical interfaces (not GUIDE), and it seems that MATLAB always pops up on the first monitor. I did a bit of work and found to find graphical interfaces for selecting a monitor using the commands p = get(gcf, 'Position') , set(0, 'DefaultFigurePosition', p) and movegui , but this will only work if I know in advance which monitor I want to use.
Is there any way to find out on which monitor the main GUI of MATLAB is located, and other small graphical interfaces appear on the same monitor?
source share