size — size of argument


\begin{rail}
Size : 'size' '(' ( Scalar \vert Matrix \vert String \vert List ) ')' ;
\end{rail}
The size function returns the size of the argument. If the argument is a string or scalar, then the result is a two element row vector, with both elements set to 1. If the argument is a matrix, then the result is a two element row vector, with the first element equal to the number of rows in the argument, and the second argument equal to the number of columns. If the argument is a list, size returns the number of elements in the list.

Subsections