converting binary to decimal
Show older comments
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
Accepted Answer
More Answers (1)
Walter Roberson
on 19 Jan 2013
typecast(bin2dec(Cw1), 'int16')
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!