MATLAB Answers

how to extract last 3 bits from binary string and then concatenate

13 views (last 30 days)
lilly lord
lilly lord on 29 May 2020
Commented: lilly lord on 29 May 2020
Hi, i have an array which is converted into binary string. I want to extract last three bits and then arrange in an array
Y=[123 345 981 345 650]';
%Convert into binary
%%%%Out put is

Accepted Answer

KSSV on 29 May 2020
iwant = Y1(:,8:10)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!