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.
function quadReverse input Real x[:] = {1, 2, 3, 4, 5, 6, 7, 8} "Vector"; input Boolean p = true "If p is true, the signs of the even index entries of the reversed input vector, x, is reversed. Otherwise, odd index entries are reversed."; output Real y[size(x, 1)] "Quadrature mirrored elements of the input vector"; end quadReverse;