How do I reverse a vector?

6 visualizaciones (últimos 30 días)
Arthik Adla
Arthik Adla el 16 de Feb. de 2015
Respondida: Roger Stafford el 16 de Feb. de 2015
For example, how would I change x=[1 2 3 4] to x=[ 4 3 2 1]?

Respuestas (1)

Roger Stafford
Roger Stafford el 16 de Feb. de 2015
x = fliplr(x);

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by