convert matrix into another matrix

4 Ansichten (letzte 30 Tage)
mahesh chathuranga
mahesh chathuranga am 3 Okt. 2013
Bearbeitet: Walter Roberson am 15 Okt. 2013
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.

Antworten (1)

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

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by