Previous Up Next

5.49.33  Dimension of a matrix: dim

dim takes as argument a matrix A.
dim returns the list of the number of rows and columns of the matrix A.
Input:

dim([[1,2,3],[3,4,5]])

Output:

[2,3]

Previous Up Next