convert matrix into another matrix

1 回表示 (過去 30 日間)
mahesh chathuranga
mahesh chathuranga 2013 年 10 月 3 日
編集済み: Walter Roberson 2013 年 10 月 15 日
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.

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by