Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:
cols(matrix(10, 3))

Result:
Contents of cols
[1,]     3



(C) MD*TECH Method and Data Technologies, 05.02.2006