How to convert decimal into binary 2 bit?

1 view (last 30 days)
Please Help Me ;)

Answers (1)

Walter Roberson
Walter Roberson on 4 May 2019
switch x
case 0; B = [0 0]
case 1; B = [0 1]
and case 2 and 3, and add an "end" statement

Community Treasure Hunt

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

Start Hunting!