Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
Is there a function to do this in MATLAB?

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 14 Set 2023
dec2bin(-1)
ans = '11111111'

Community Treasure Hunt

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

Start Hunting!

Translated by