Previous Up Next

5.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.

Example.

Input:

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

Output:

3

Previous Up Next