Replace binary values with varying binary values

Hello,
I have an array of 32 bit binary numbers and I want to replace the last bits with varying lengths of binary numbers.
10111 10110 In this I only change the last bit
10011 10000 In this one I only change the last 2 bits
and so on

댓글 수: 4

Adam
Adam 2019년 4월 23일
What is the question exactly?
'11100001000' Now I want to change the last 4 bits for the first value
3 bits for the second value
1 bit for the third value depending on the count of the bits I need
'11100001001' to replace.
'11100001010'
'11100001011'
'11100001100'
'11100001101'
'11100001110'
'11100001111'
I still don't understand the question. The example looks like a simple count from 1800, 1801, ..., 1807 in binary.
I want to encode the last few bits based on a mapping ( using LSB)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

질문:

2019년 4월 23일

댓글:

2019년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by