Some more vector commands

Some more vector commands
vector/create VECT(10,3) R _
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. _
9.1 8.1 7.1 6.1 5.1 4.1 3.1 2.1 1.1 0.1 _
6.2 4.2 3.2 2.2 1.2 1.2 2.2 3.2 4.2 5.2
vector/create VECT1(10) R _
1.1 2.2 3.3 4.4 5.5 6.6 5.5 4.4 3.3 2.2
5 SET HTYP 244 ; VE/DR VECT(1:10,3)
1 2 VECTOR/DRAW VECT(1:10,3) ! SC
4 6 VECTOR/DRAW VECT1 ! L*S
ve/list
3 VE/WRITE VECT 'vector.data' '(3(10f5.0,/))'

- A vector can have up to three dimensions. Dimensions which are not
specified are taken as 1, for example VEC(10) ->
VEC(10,1,1) and VEC -> VEC(1,1,1) .
- It is possible to access a subrange of a vector, for example:
V(2:3) , V(3:) or V(:5) .
- The command
VECT/WRITE
creates the file
vector.data as follows:
1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
9. 8. 7. 6. 5. 4. 3. 2. 1. 0.
6. 4. 3. 2. 1. 1. 2. 3. 4. 5.
Note also:
- The character ``!'' means default value of a parameter.
- It is possible to have several commands, separated with ``;'', on
the same line.
- Many commands have a parameter which defines
options. Such parameters (often called CHOPT or OPTION )
have the attribute ``Option'' (see the help). Each option is
a character string. It is possible to mix several options, e.g.
`` SC '' or `` L*S ''.

Last update: 96/05/24 17.17 Olivier.Couet@Cern.Ch