MATLAB: How to rotoate left and right

left rotate and right rotate

hai matlab users
can any say what is the matlab function or operator to rotate a 8 bit value.
for example i has a 8 bit binary value, i would like to rotate 3 time to its left
and later three times to its right.
example:
1010 0101
after three right rotation it will become 0010 1000 after three left rotation to the above number it will become 0000 0101.
i want just a << and >> equivalent in c language
can any one say how to do using this matlab function

Best Answer

Did you try bitshift()?
Related Question