Skip to content

rows

Number of rows in a reference.

v = rows(arr)

Returns the number of rows in arr. Equivalent to size(arr, 1) in script mode.

rows([1 2 3; 4 5 6]) % 2
  • columns — Number of columns in a reference.
  • row — Row number of a reference.
  • size — Sizes along all dimensions, or along one specific dimension.