Shift a square matrix along a bigger square matrix by one
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
John D'Errico
am 30 Nov. 2022
Please give an example. Even the clarification comment you made is highly confusing.
Antworten (2)
Bjorn Gustavsson
am 30 Nov. 2022
Have a look at the help and documentation for the function circshift. That function should solve the problem you have described.
HTH
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!