Hi...I am trying to create a mirror image for a matrix.IS it possible?

1 vue (au cours des 30 derniers jours)
nafila aytija
nafila aytija le 3 Juin 2016
Commenté : Star Strider le 3 Juin 2016
For, example-I have a matrix A=[1 0 0 ;1 1 0; 0 1 1].SO Can it be made like this M=[0 0 1; 0 1 1; 1 1 0]??Thanks in Advance

Réponse acceptée

Star Strider
Star Strider le 3 Juin 2016
Use the fliplr function:
A = [1 0 0 ;1 1 0; 0 1 1]
B = fliplr(A)
A =
1 0 0
1 1 0
0 1 1
B =
0 0 1
0 1 1
1 1 0
  2 commentaires
nafila aytija
nafila aytija le 3 Juin 2016
Thank you very much ....
Star Strider
Star Strider le 3 Juin 2016
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by