Previous Up Next

5.43.34  Number of columns : coldim colDim ncols

coldim (or colDim or ncols) takes as argument a matrix A.
coldim (or colDim or ncols) returns the number of columns of the matrix A.
Input :

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

or :

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

Output :

3

Previous Up Next