Group: | Matrix Manipulation |
Topic: | Sorting and Counting |
See also: | [] list {} |
Function: | dot | |
Description: | a dot gives an element of a list. |
Usage: | y = x.elem | |
Input: | ||
x | list | |
elem | name of an element of x | |
Output: | ||
y | element of x with name elem |
Another kind to select an element is with the number and {}.
x1=#(1,3)~#(3,1) x2=4:6 y=list(x1,x2) y.x1
Contents of x1 [1,] 1 3 [2,] 3 1