rshift(>>)

Syntax

X>>a

Arguments

X is an integral scalar/pair/vector/matrix.

a a is the number of bits to shift.

Details

Shift bits to the right.

Examples

rshift(2048, 2);
// output
512

1..10 >> 1;
// output
[0,1,1,2,2,3,3,4,4,5]

1:10>>1;
// output
0 : 5

Related operator: lshift