bitshift
Bitwise shift.
z=bitshift(x,y)
Inputs 
x 
A one dimensional integer array or scalar. 
y 
A one dimensional integer array of the same size as x or a scalar.

Outputs 
z 
An integer array. If x is an array, z is of the same size as x . Otherwise the size of z is same as the size of
y .

Description
If both the inputs are of the same size, the elements of
the output are computed from z[i]=x[i]>>y[i]
when
y[i]
is positive, and from z[i]=x[i]<<(y[i])
when y[i]
is
negative.
If one of the inputs is a scalar, the other an array, the scalar
input is replaced by an array of the same size as the other array,
with every element of the new array being identical to the scalar
input.
Example
>>bitshift([1 2 4 5],2)
0 0 1 1
>>bitshift([1 2 4 5],2)
4 8 16 20