How to shift collum of matrix to the right ?
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear All,
I am trying to reshape my image by shifting the collum of matrix to the right.
Coud someone help me ?
[
I want to apply this method for my image as bellow
Thanks you so much!
Han
댓글 수: 0
답변 (1개)
VBBV
2022년 10월 19일
A = eye(10)
A = circshift(A(3,:),1)
You can use circshift function to shift position of zeros in the matrix as above
댓글 수: 3
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!