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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!