How to convert a negative decimal to binary using the two's complement coding method

14 visualizaciones (últimos 30 días)
Is there a function to do this in MATLAB?

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 14 de Sept. de 2023
dec2bin(-1)
ans = '11111111'

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by