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 |
x1=(1:4)' x2=matrix(2,2) y=list(x1,x2,(4:6)',9,8,"XploRe") size(y) size(x2)
Contents of size [1,] 6 Contents of size [1,] 4