SHAPE

Returns the dimensions of a matrix.

Format

SHAPE (M)

Argument

 
M
A matrix.

Example

The following example illustrates the use of the SHAPE function:
 
Function
SHAPE({1, 2, 3})
Result
{3, 1}