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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by