Shift a square matrix along a bigger square matrix by one

1 次查看(过去 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 个)

Bjorn Gustavsson
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

DGM
DGM 2022-11-30
编辑:DGM 2022-12-8

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by