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!

 Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 8 Oct 2011

4 votes

doc fliplr
x(end:-1:1)
or
fliplr(x)

1 commentaire

Steve
Steve le 8 Oct 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by