fshift

Shifts the elements of an array by a (possibly non-integer) given number of elements.

Download
Download

You are now following this Submission

Cite As

Francois Bouffard (2026). fshift (https://www.mathworks.com/matlabcentral/fileexchange/7886-fshift), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Fourier Analysis and Filtering in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.31.0

Simpler code that accomplishes the same for even-length inputs.

Download
1.3.0

Fixed a bug with even-length complex inputs. Thanks to Ahmed Fasih for pointing out the problem.

Download
1.2.0

Updated the author information in the file.

Download
1.1.0

Bugfix: changed conjugate transpose for simple transpose, which fixes the shift direction reversal (e.g. with respect to Matlab's CIRCSHIFT). Thanks to Kamil Wojcicki for pointing out the problem.

Download
1.0.0

Bug fix: results for vectors with an even length were slightly off for non-integer shifts. Sorry for the inaccuracies that this could have caused.

Download