Set the UI Window Size in GUIDE
The GUIDE environment will be removed in a future release. After GUIDE is removed, existing GUIDE apps will continue to run in MATLAB® but they will not be editable in GUIDE.
To continue editing an existing GUIDE app, see GUIDE Migration Strategies for information on how to help maintain compatibility of the app with future MATLAB releases. To create new apps interactively, Develop Apps Using App Designer instead.
Set the size of the UI window by resizing the grid area in the Layout Editor. Click the lower-right corner of the layout area and drag it until the UI is the desired size. If necessary, make the window larger.
As you drag the corner handle, the readout in the lower right corner shows the current position of the UI in pixels.
Units property to
characters (nonresizable UIs) or
normalized (resizable UIs) gives the UI a more
consistent appearance across platforms.
Prevent Existing Objects from Resizing with the Window
Existing objects within the UI resize with the window if their
Units are set to
'normalized'. To prevent them from
resizing with the window, perform these steps:
Set each object’s
Unitsproperty to an absolute value, such as inches or pixels before enlarging the UI.
To change the
Unitsproperty for all the objects in your UI simultaneously, drag a selection box around all the objects, and then click the Property Inspector button and set the
When you finish enlarging the UI, set each object’s
Unitsproperty back to
Set the Window Position or Size to an Exact Value
In the Layout Editor, open the Property Inspector for the figure by clicking the button (with no components selected).
In the Property Inspector, scroll to the
Unitsproperty and note whether the current setting is
Click the down arrow at the far right in the
Unitsrow, and select
In the Property Inspector, display the
Positionproperty elements by clicking the + sign to the left of
ycoordinates to the point where you want the lower-left corner of the window to appear, and its width and height.
Unitsproperty to its previous setting, as noted in step 2.
Maximize the Layout Area
You can make maximum use of space within the Layout Editor by hiding the GUIDE toolbar and status bar, and showing only tool icons, as follows:
From the View menu, deselect Show Toolbar.
From the View menu, deselect Show Status Bar.
Select File > Preferences, and then clear Show names in component palette