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 Exchange에서 Numeric 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