Formulas 1.4. Array expressions

A numeric vector expression is an expression whose value is a numeric vector.

You can check the outcomes of the following examples with the calculator.

{ 11, 13, 17 } + 0.5
adds 0.5 to each element of a vector with three elements, giving a new vector with three elements. Praat writes the outcome to the Info window as three lines, containing the numbers 11.5, 13.5 and 17.5:
11.5
13.5
17.5
zero# (5)
creates a vector with 5 zeroes. Praat writes them on five lines:
0
0
0
0
0
repeat# ({ 1, 5 }, 6)
creates a vector with 12 elements, in which the sequence { 1, 5 } is repeated 6 times. Outcome:
1
5
1
5
1
5
1
5
1
5
1
5

Links to this page


© ppgb 20170916