How do I reverse a vector?
Mostrar comentarios más antiguos
For example, how would I change x=[1 2 3 4] to x=[ 4 3 2 1]?
Respuestas (1)
Roger Stafford
el 16 de Feb. de 2015
x = fliplr(x);
Categorías
Más información sobre NaNs en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!