Previous Up Next

5.49.35  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