functionquadReverse

Quadrature mirror of a given vector

Information

Changes the signs of the even index entries of the reversed input vector, x, if p is true. If p is false the same holds for odd index entries.

Inputs

TypeNameDefaultDescription
Real[:]x{1, 2, 3, 4, 5, 6, 7, 8}Vector
BooleanptrueIf p is true, the signs of the even index entries of the reversed input vector, x, is reversed. Otherwise, odd index entries are reversed.

Outputs

TypeNameDefaultDescription
Real[size(x, 1)]yQuadrature mirrored elements of the input vector