converting binary to decimal
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 19 Jan. 2013
typecast(bin2dec(Cw1), 'int16')
2 Kommentare
FIR
am 21 Jan. 2013
Walter Roberson
am 21 Jan. 2013
typecast(uint16(bin2dec(Cw1)),'int16')
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!