next up previous contents index
Next: The seed Command Up: Data Manipulation Commands Previous: The linearize Command   Contents   Index


The pick Command

The pick command creates a new vector from elements of other vectors.

pick vecname offset period vector [vector ...]
The command creates a vector vecname and fills it with every period'th value starting with offset from the vectors. The offset and period are integers. For example, for
pick xx 1 2 v1 v2
we obtain
xx[0] = v1[1]
xx[1] = v2[1]
xx[2] = v1[3]
xx[3] = v2[3]
and so on.



Stephen R. Whiteley 2017-03-28