move
Syntax
move(X, steps)
Arguments
X is a vector/matrix.
steps is an integer indicating how many positions to shift the elements of X. If steps is positive, X is moved to the right for "steps" positions; if steps is negative, X is moved to the left for "steps" positions.
Details
Examples
x=3 9 5 1 4 9;
move(x,3);
// output
[,,,3,9,5]
move(x,-2);
// output
[5,1,4,9,,]