How do I reverse a vector?

For example, how would I change x=[1 2 3 4] to x=[ 4 3 2 1]?

Tags

Asked:

on 16 Feb 2015

Answered:

on 16 Feb 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!