[row, col] = tilerowcol(t, tilenum)
[row, col] = tilerowcol(obj)
| Parameter | Description |
|---|---|
| t | TiledChartLayout object. |
| tilenum | Tile number: positive integer or array. |
| obj | Graphics object (axes) created by nexttile. |
| Parameter | Description |
|---|---|
| row | Row index: positive integer, or NaN for invalid or edge tiles. |
| col | Column index: positive integer, or NaN for invalid or edge tiles. |
tilerowcol(t, tilenum) returns the row and column indices for the given tile number in the TiledChartLayout t.
tilerowcol(obj) returns the row and column of the tile occupied by the axes object obj.
Returns NaN for out-of-range tile numbers or for edge tile axes.
t = tiledlayout(2, 3);
[row, col] = tilerowcol(t, 4)
| Version | Description |
|---|---|
| 1.17.0 | initial version |