MATLAB: Vector mirror

MATLABvector

Hello Experts,
Given, for example, vector x = [4,-3,5,6].
I want it to be mirrored – x = [6,5,-3,4]
How can I do it in Matlab?
Thanks in advance!

Best Answer

doc fliplr
x(end:-1:1)
or
fliplr(x)