converting binary to decimal
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Walter Roberson
2013-1-19
typecast(bin2dec(Cw1), 'int16')
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!