How to form bytes ?

2 次查看(过去 30 天)
Sana Shaikh
Sana Shaikh 2013-4-20
To extract hidden data frm LSBs of image I have collected dataa as bits in an array array size is 486864x1 (It consists of 486864 bits that I retrieved) Now how to form bytes of this data? each 8 bits in this array is to represented as a byte How can I do ths????

采纳的回答

Walter Roberson
Walter Roberson 2013-4-20
uint8( D(1:8:end) * 128 + D(2,8,end) * 64 + D(3,8,end) * 32 (etc) )

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Encryption / Cryptography 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by