Group: | Matrix Manipulation |
Topic: | Sorting and Counting |
See also: | dim rows |
Function: | cols | |
Description: | Returns the number of columns in an array. |
Usage: | z = cols (x) | |
Input: | ||
x | d1 x d2 x ... x dn array | |
Output: | ||
z | scalar with the number d2 |
cols(matrix(10, 3))
Contents of cols [1,] 3