Compute Dimensions of a Matrix

To find the dimensions of a matrix, use the linalg::matdim command. For example, concatenate the following matrices and compute the dimensions of the resulting matrix:

A := matrix([[a, b], [c, d]]):
B := matrix([[1, 2, 3], [4, 5, 6]]):
linalg::matdim(A.B.A.A.B)

Was this topic helpful?