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

22 ビュー (過去 30 日間)
Rafael Zapata
Rafael Zapata 2023 年 9 月 14 日
回答済み: Fangjun Jiang 2023 年 9 月 14 日
Is there a function to do this in MATLAB?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2023 年 9 月 14 日
dec2bin(-1)
ans = '11111111'

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by