Borrar filtros
Borrar filtros

Vector mirror?

65 visualizaciones (últimos 30 días)
Steve
Steve el 8 de Oct. de 2011
Hello Experts,
Given, for example, vector x = [4,-3,5,6].
I want it to be mirrored - x = [6,5,-3,4]
How can I do it in Matlab?
Thanks in advance!

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 8 de Oct. de 2011
doc fliplr
x(end:-1:1)
or
fliplr(x)
  1 comentario
Steve
Steve el 8 de Oct. de 2011
Thank you Andrei!
It is a very simple and brilliant solution!
I am inviting you to share knowledge and learn on my blog: shareinfoblog.blogspot.com.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by