shift.m

Version 1.1.0.0 (9,63 ko) par Bernhard
shift the elements of an array (of any dimension)
518 téléchargements
Mise à jour 28 avr. 2014

Afficher la licence

SHIFT (A, SHIFTSIZE, PADVAL) is an extension of circshift.m, allowing both integer and fractional shiftsize along all dimensions of A, and a padding different from circular. In the case of integer shiftsize, the algorithm of circshift.m is used which gives the same performance.
SHIFT is especially useful for the shift, including sub-pixel shift, of image data.

The padding methods are the same as in the MATLAB function padarray.m ('circular', 'replicate', 'symmetric'), as well as padding with numeric values (e. g. with 0) or with NaN. The screenshot shows an example of 'replicate' padding.

Citation pour cette source

Bernhard (2026). shift.m (https://fr.mathworks.com/matlabcentral/fileexchange/46386-shift-m), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2012a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Version Publié le Notes de version
1.1.0.0

a minor error in the description was fixed

1.0.0.0