columns
Number of columns in a reference.
Syntax
Section titled “Syntax”v = columns(arr)Description
Section titled “Description”Returns the number of columns in arr. Equivalent to size(arr, 2).
Example
Section titled “Example”columns([1 2 3; 4 5 6]) % 3