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일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

질문:

2013년 10월 3일

편집:

2013년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by