I am using matlab R2012a (7.14.0.737) 64-bit on a windows 7 PC. I have 2 monitors. I want to be able to open a matlab GUI figure up on the 2nd monitor (on the left).
at the command line opening figures there works fine.
h = figure( ... , 'position',[some -value on the other screen y w h)
but the GUI figure is always made on the 1st monitor despite 1) the correct position values entered into the GUI window properties and/or 2) using the code
set( hObject, 'position',[some -value on the other screen y w h)
in the GUI opening function.
However, if I place this code in the output function it's ok. inelegant as you see the figure appear and then move over. the values in the GUI are set the way i want them to be too. just ignored by matlab it seems. Any ideas?
- update *
I have since read that matlab calls movegui(fig, 'onscreen')
when opening a guide-created figure. arg. I suppose now the issue is how to override that, or how to set 'onscreen' to be the other monitor. Still no solution on this end