B = shiftVector(A,shiftsize) will shift the vector A left/up (if shiftsize is positive) or right/down (if shiftsize is negative) by shiftsize steps, and move the elements that are cut off back to the opposite end.
Sebastian (2020). Shift Vector (https://www.mathworks.com/matlabcentral/fileexchange/42033-shift-vector), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!