Shift matrix

Fast and convenient function for shifting a matrix in 2D.

現在この提出コンテンツをフォロー中です。

The code uses array indexing to implement shifting of the matrix. It is about 2.5 times faster than using interp2 with 'nearest neighbor' option for shifting of the matrices. Inspiration for optimized array indexing comes from a snippet on circular shift in: "MATLAB array manipulations tips and tricks" guide by Peter J. Acklam (http://home.online.no/~pjacklam).

引用

Shalin Mehta (2026). Shift matrix (https://jp.mathworks.com/matlabcentral/fileexchange/31840-shift-matrix), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersCreating and Concatenating Matrices についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0.0

Updated help.

1.0.0.0