MATLAB: How to position a GUI created using GUIDE at a particular place on the screen

MATLAB

I use GUIDE to build a GUI. GUIDE places the GUI in a default position which is the center of the screen. I would like to change the GUI's default position.

Best Answer

You can position the GUI at a particular place on the screen by adjusting the GUI’s "Position" property in the program file corresponding to the GUI. For example:
set( hObject , 'Units' , 'normalized' )
figureposition = get( hObject , 'Position' ) ;
set( hObject , 'Position' , ...
[ (1-figureposition(3))/2 , 0.98-figureposition(4) , ...
figureposition(3) , figureposition(4) ] )
positions the GUI at the left top corner of the screen.