The DIMENSION function returns a vector whose elements are the number of rows and columns, respectively, of a matrix.