Merge bits on a byte simulink
古いコメントを表示
Dears,
I would like to create a byte with 8 independent bits in Simulink. The opposite function is achieved with the "Extract Bits" block. From a byte I can extract the value of the bit at position x. I would like to do the opposite operation, from many bits to generate a byte.
Thanks and regards
Juan
2 件のコメント
Walter Roberson
2022 年 6 月 16 日
You can use a series of BitSet blocks, or you can use a Math block... 128*u(1) + 64*u(2) etc
JuanMa
2022 年 6 月 16 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で String についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
