6.45.19 Number of columns: coldim colDim ncols
The coldim command finds the number of columns of a matrix.
colDim and ncols are synonyms for coldim.
-
coldim takes one argument:
A, a matrix.
- coldim(A) returns the number of columns of the matrix
A.
Example.
Input:
coldim([[1,2,3],[3,4,5]])
Output: