COLS

Returns the number of columns in a given matrix.

Format

COLS (M)

Argument

 
M
A given matrix.

Examples

The following examples illustrate the use of the COLS function:
 
Function
COLS({1, 2, 3})
Result
1
 
Function
COLS({[1, 2, 3]})
Result
3
 
Function
COLS(marker_1.location)
Result
1