shift
Shift the vector elements or the matrix rows and the columns circularly.
Arguments
- Vector or matrix
- Number of shifting positions, integer value.
- String 'row' or 'col', 'row' for rows shift and 'col' for columns shift.
Output
Vector or matrix
Examples