H = height(T)
| Parameter | Description |
|---|---|
| T | Input array (table or other). |
| Parameter | Description |
|---|---|
| H | a integer value: Number of table rows in Table or size(T, 1). |
H = height(T) returns the number of rows in the table T.
The function height(T) is equivalent to size(T, 1), which also provides the number of rows in the table.
T = table();
height(T)
C = {'John', 28, true; 'Alice', 35, false; 'Bob', 42, true};
T = cell2table(C);
height(T)
| Version | Description |
|---|---|
| 1.8.0 | initial version |