fold
Magnitude folding function.
Syntax
fold(vec_expr)
Argument
- vec_expr
- A valid vector expression.
Example
| Curve Math Vectors | Result | 
|---|---|
| x = freq(c1.x)
 | Given c1, a curve is created which is the folded (one-sided) frequency spectrum of curve c1. | 
Comments
The result contains a number of elements equal to half the number of elements in vec_expr. The first element of the result is the same as the first element of vec_expr. All other elements of the result are twice the value of the corresponding element in vec_expr.
fold should only be used with magnitude functions.