Return the matrix size of the argument.
size([1,2;3,4;5,6])
arg | The object, the size of which is to be measured. |
return value | The size of the argument. |
The argument can be any scalar, vector, or matrix. It always handles the input as a matrix: a scalar is a 1x1 matrix, a vector is a 1xN size matrix.
The size is a vector in [no. of rows, no. of colums] format.
size([1,2,3])[1]