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

11 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Star Strider
Star Strider il 3 Giu 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

Più risposte (0)

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by