converting binary to decimal
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 19 de En. de 2013
typecast(bin2dec(Cw1), 'int16')
2 comentarios
FIR
el 21 de En. de 2013
Walter Roberson
el 21 de En. de 2013
typecast(uint16(bin2dec(Cw1)),'int16')
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!