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!