Hi...I am trying to create a mirror image for a matrix.IS it possible?
조회 수: 2 (최근 30일)
이전 댓글 표시
For, example-I have a matrix A=[1 0 0 ;1 1 0; 0 1 1].SO Can it be made like this M=[0 0 1; 0 1 1; 1 1 0]??Thanks in Advance
댓글 수: 0
채택된 답변
Star Strider
2016년 6월 3일
Use the fliplr function:
A = [1 0 0 ;1 1 0; 0 1 1]
B = fliplr(A)
A =
1 0 0
1 1 0
0 1 1
B =
0 0 1
0 1 1
1 1 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!