Borrar filtros
Borrar filtros

Reverse matrix position

1 visualización (últimos 30 días)
developer
developer el 28 de Jun. de 2011
Hello,
If i have
x =
1 2 3
4 5 6
7 8 9
10 11 12
I want it to be as
x =
10 11 12
7 8 9
4 5 6
1 2 3
Please help
  1 comentario
developer
developer el 28 de Jun. de 2011
The numbers are not in this order of incrementing , this is just to give the example.

Iniciar sesión para comentar.

Respuesta aceptada

Nirmal Gunaseelan
Nirmal Gunaseelan el 28 de Jun. de 2011
Accessing row values in the reverse order will get you there:
x(end:-1:1,:)

Más respuestas (1)

Sean de Wolski
Sean de Wolski el 28 de Jun. de 2011
doc flipud
xflipped = flipud(x)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by