how to cast int8 to a 4bit integer

How can I cast a 8 bit integer to a 4bit integer in matlab?
Thanks.

2 件のコメント

John D'Errico
John D'Errico 2019 年 1 月 15 日
MATLAB does not have a 4 bit integer type. So you cannot do what you ask in MATLAB.
Walter Roberson
Walter Roberson 2019 年 1 月 15 日
fixed point toolbox is as close as you will get.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeNumeric Types についてさらに検索

質問済み:

2019 年 1 月 15 日

コメント済み:

2019 年 1 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by