height
Number of table rows
📝Syntax
H = height(T)
📥Input Arguments
Parameter Description
T Input array (table or other).
📤Output Arguments
Parameter Description
H a integer value: Number of table rows in Table or size(T, 1).
📄Description

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.

💡Examples
T = table();
height(T)
C = {'John', 28, true; 'Alice', 35, false; 'Bob', 42, true};
T = cell2table(C);
height(T)
🔗See Also
widthsizetable
🕔Version History
Version Description
1.8.0 initial version
Edit this page on GitHub