wrev - flip the vector
This function flips the input vector no matter it is a row vector or column vector. The output vector would be a row vector.
-->a=[1 2 3 4 5]; -->b=wrev(a) ans = 5 4 3 2 1 -->a=a'; -->b=wrev(a) ans = 5 4 3 2 1 -->a=[1 2 3;4 5 6]; -->b=wrev(a) Input should be vectors rather than matrixes! -->a=1; -->b=wrev(a) Input should be vectors!