tilenum
Get tile number from row-column indices or graphics object.
📝Syntax
n = tilenum(t, row, col)
n = tilenum(obj)
📥Input Arguments
Parameter Description
t TiledChartLayout object.
row Row index: positive integer or array.
col Column index: positive integer or array.
obj Graphics object (axes) created by nexttile.
📤Output Arguments
Parameter Description
n Tile number: positive integer, or NaN for out-of-range or edge tiles.
📄Description

tilenum(t, row, col) returns the tile number for the given row and column in the TiledChartLayout t.

tilenum(obj) returns the tile number of the tile occupied by the axes object obj.

Returns NaN for out-of-range indices or for edge tile axes.

💡Examples
Get tile number by row and column
t = tiledlayout(2, 3);
n = tilenum(t, 1, 2)
🔗See Also
tiledlayoutnexttiletilerowcol
🕔Version History
Version Description
1.17.0 initial version
Edit this page on GitHub