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 	

Group: Matrix Manipulation
Topic: Sorting and Counting
See also: dim rows

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

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