Hi...I am trying to create a mirror image for a matrix.IS it possible?
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponse acceptée
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
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!