Shift a square matrix along a bigger square matrix by one

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 commentaires

What do you mean by shift the matrix? Any example?
Please give an example. Even the clarification comment you made is highly confusing.

Connectez-vous pour commenter.

Réponses (2)

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

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Question posée :

le 30 Nov 2022

Modifié(e) :

DGM
le 8 Déc 2022

Community Treasure Hunt

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

Start Hunting!

Translated by