Shift matrix

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

Sie verfolgen jetzt diese Einreichung

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).

Zitieren als

Shalin Mehta (2026). Shift matrix (https://de.mathworks.com/matlabcentral/fileexchange/31840-shift-matrix), MATLAB Central File Exchange. Abgerufen .

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.1.0.0

Updated help.

1.0.0.0