You can use a feature bitshiftavailable at least from MATLAB 2009a. From the documentation
c = bitshift(a, k)returns the value ashifted by a bit k.
MATLAB 2012b
>> bitsra(128, 3)
ans =
16
MATLAB 2009a:
>> bitshift(128, -3)
ans =
16
: bitshift , , bitshift(128.5, -3), , . , bitshift(128.5, -3), , , 128.5 . bitshift fi . -
>> bitshift(fi(128.5), -3)
ans =
16.025