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: {} comp list

Function: size
Description: gives the number of elements contained in a list or array

Usage: y = size(x)
Input:
x list or array (of strings or numbers)
Output:
y integer, the number of elements

Note:

Example:
x1=(1:4)'
x2=matrix(2,2)
y=list(x1,x2,(4:6)',9,8,"XploRe")
size(y)
size(x2)

Result:
Contents of size
[1,]     6

Contents of size
[1,]     4



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