bitsrl of a hex value
Show older comments
I want to bit right shift logical a hex value.
AF is input hex .Then bit is 10101111 . So bitsrl by 2 should give 101011. So out hex 2B.
I tried converting to dec and binary.But,not getting correct answer.
When converted k0=k0(:) and bit shifted ,I get both A and F shifted by 2.
1 Comment
Jan
on 22 Jan 2018
The question is not clear. What does "bit right shift logical a hex value" mean? Please post the code to define the inputs.
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!