How to shift collum of matrix to the right ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
VBBV
el 19 de Oct. de 2022
A = eye(10)
A = circshift(A(3,:),1)
You can use circshift function to shift position of zeros in the matrix as above
3 comentarios
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!