how to cast int8 to a 4bit integer

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

2 Comments

MATLAB does not have a 4 bit integer type. So you cannot do what you ask in MATLAB.
fixed point toolbox is as close as you will get.

Sign in to comment.

Answers (0)

Categories

Asked:

on 15 Jan 2019

Commented:

on 15 Jan 2019

Community Treasure Hunt

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

Start Hunting!