converting binary to decimal
Afficher commentaires plus anciens
i have a value as S=-5
i converted it to binary by
Cw1=dec2bin(typecast(int16(S),'uint16'),15)
now how to convert again to -5
plz assist
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 19 Jan 2013
typecast(bin2dec(Cw1), 'int16')
2 commentaires
FIR
le 21 Jan 2013
Walter Roberson
le 21 Jan 2013
typecast(uint16(bin2dec(Cw1)),'int16')
Catégories
En savoir plus sur Data Type Conversion 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!