convert matrix into another matrix

a=[0 0 1 1;
0 0 1 1;
0 2 2 2;
2 2 3 3]
this is my matrix and i want to obtain
b=[1 1 0 0;
1 1 0 0;
2 2 2 0;
3 3 2 2]
how can i do this. can you help me.

Respuestas (1)

Yatin
Yatin el 14 de Oct. de 2013

0 votos

Hi,
You can try using the " fliplr " command for flipping the matrix elements.
Here is the link to the documentation:

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Oct. de 2013

Editada:

el 15 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by