FUNCTION REFERENCE

uigridlayout

Create grid layout manager for UI components.

Create grid layout manager for UI components.

Syntax

g = uigridlayout

Syntax

g = uigridlayout(parent)

Syntax

g = uigridlayout(parent, [rows cols], Name, Value)

Arranges child UI components in rows and columns with RowHeight and ColumnWidth (pixels, '1x' weights, 'fit'), Padding, RowSpacing, ColumnSpacing, and Scrollable. Child placement uses Layout.Row and Layout.Column.

Example

fig = uifigure; g = uigridlayout(fig, [2 2]); g.RowHeight = {'1x', 'fit'}; delete(fig)

Differences from MATLAB: Grid size is limited to 256 rows and 256 columns; custom ComponentContainer children are not supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.