필터 지우기
필터 지우기

convert matrix into another matrix

조회 수: 2 (최근 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 CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by