Flip vector
y = wrev(x)
example
y = wrev(x) reverses the vector x.
y
x
collapse all
Create a vector.
v = [1 2 3 4 5];
Flip the vector.
wrev(v)
ans = 1×5 5 4 3 2 1
Flip the transpose of the vector.
wrev(v')
ans = 5×1 5 4 3 2 1
Input, specified as a vector.
Data Types: single | double Complex Number Support: Yes
single
double
fliplr | flipud
fliplr
flipud
You have a modified version of this example. Do you want to open this example with your edits?