14.3.16 Dimension of a matrix
The
dim
command finds the dimension of a matrix.
dim
takes
A
, a matrix
dim(
A
)
returns a list of the number of rows and columns of the matrix
A
.
Example
dim
([[1,2,3],[3,4,5]])
⎡
⎣
2,3
⎤
⎦