Code covered by the BSD License
4.25
by Diego Orlando
14 Jun 2008 (Updated 16 Jun 2008)
12. CENTER THE "GUI" IN THE SCREEN
| Watch this File
THIS VIDEO SHOW HOW TO CENTER THE "GUI" IN THE SCREEN
Nice tutorial. It is a pity that it is spoken in Spanish (?). The video itself however already speaks for itself.
why not so: scrsz = get(0,'ScreenSize'); figsz = getpixelposition(hObject); setpixelposition(hObject,[(scrsz(3:4)-[figsz(3:4)])/2 figsz(3:4)])
or much easier movegui(hObject,'center')
Thanks!
nice, very helpful
Contact us at files@mathworks.com