bitsrl of a hex value
Ältere Kommentare anzeigen
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 Kommentar
Jan
am 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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!