Code covered by the BSD License  

Highlights from
Shift Vector

Be the first to rate this file! 13 Downloads (last 30 days) File Size: 1.48 KB File ID: #42033
image thumbnail

Shift Vector

by

 

Shifts a row or column vector by an input number of elements

| Watch this File

File Information
Description

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.

Required Products MATLAB
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
31 May 2013 Song

Isn't that just doing what the built-in circshift does?

Contact us