| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
Set the size of the GUI by resizing the grid area in the Layout Editor. Click the lower-right corner and drag it until the GUI 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 GUI in pixels.
Note Many of the following steps show you how to use the Property Inspector to set properties of a GUI and its components. If you are not familiar with using this too and its context-sensitive help, see Property Inspector |
If you want to set the position or size of the GUI to an exact value, do the following:
Select Property Inspector from
the View menu or click the Property
Inspector button
.
Scroll to the Units property and note whether the current setting is characters or normalized. Click the button next to Units and then change the setting to inches from the pop-up menu.

In the Property Inspector, click the + sign next to Position. The elements of the component's Position property are displayed.

Type the x and y coordinates of the point where you want the lower-left corner of the GUI to appear, and its width and height.
Reset the Units property to its previous setting, either characters or normalized.
Note Setting the Units property to characters (nonresizable GUIs) or normalized (resizable GUIs) gives the GUI a more consistent appearance across platforms. See Cross-Platform Compatible Units for more information. |
You can make maximum use of space within the Layout Editor by hiding the GUIDE toolbar, status bar, or both. To do this, deselect Show Toolbar and/or Show Status Bar from the View menu. Showing only tool icons on the component palette gives you more room as well. To show only tool icons on the component palette, select Preferences from the GUIDE File menu and deselect Show names in component palette. If you do all these things, the layout editor looks like this.

![]() | Selecting a GUI Template | Adding Components to the GUI | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |