Shift a square matrix along a bigger square matrix by one

조회 수: 1 (최근 30일)
Randa
Randa 2022년 11월 30일
편집: DGM 2022년 12월 8일
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
KSSV
KSSV 2022년 11월 30일
What do you mean by shift the matrix? Any example?
John D'Errico
John D'Errico 2022년 11월 30일
Please give an example. Even the clarification comment you made is highly confusing.

댓글을 달려면 로그인하십시오.

답변 (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