How do I reverse a vector?
Afficher commentaires plus anciens
For example, how would I change x=[1 2 3 4] to x=[ 4 3 2 1]?
Réponses (1)
Roger Stafford
le 16 Fév 2015
x = fliplr(x);
Catégories
En savoir plus sur NaNs dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!