How to convert hex two's complement to integer (e.g hex 810 to int -2032)
Afficher commentaires plus anciens
I would like to convert hex values which are defined in twos complement into int.For instance hex 810 convert in -2032. My first approach was to do it step by step. Convert to binary, Check msb for sign and then convert data accordingly. However I guess there might be a function available which can handle this issue easily??
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!