Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

Setting the GUI Size

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.

Resized layout editor grid area

As you drag the corner handle, the readout in the lower right corner shows the current position of the GUI in pixels.

If you want to set the position or size of the GUI to an exact value, do the following:

  1. Select Property Inspector from the View menu or click the Property Inspector button .

  2. 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.

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

  4. 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.

  5. Reset the Units property to its previous setting, either characters or normalized.

Maximizing the Layout Area

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.

  


Recommended Products

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