Shift a square matrix along a bigger square matrix by one
조회 수: 4(최근 30일)
표시 이전 댓글
Let’s say I have a matrix,call it m2 with size of 4x4. I want to shift the matrix by one using for loop.
댓글 수: 2
John D'Errico
2022년 11월 30일
Please give an example. Even the clarification comment you made is highly confusing.
답변(2개)
Bjorn Gustavsson
2022년 11월 30일
Have a look at the help and documentation for the function circshift. That function should solve the problem you have described.
HTH
댓글 수: 0
참고 항목
범주
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!