09-10-2013 09:34 PM
Hi I have an array of byte array of 1 and 0s. I would like to make sure every pack of 1 or 0s contains 8 number
I can use this example to explain it better. Lets say I have this array
111111110000000111111100000000
As can be first pack of 0s and the second pack of 1s contain 7 bits. I would like to programaticaaly change it to 8 so the result should be
11111111000000001111111100000000
As can be seen now evey pack of 1s or 0s contains 8 element . Could you please help me on this.A sample code would be great
Many thanks
09-11-2013 03:27 AM - edited 09-11-2013 03:28 AM
09-11-2013 07:10 AM - edited 09-11-2013 07:14 AM
Reshape array is your friend.Nevermind. I just realized what you were going for. Will need to rethink...
09-11-2013 07:42 AM
One clarification: Can there be two packets of 1's (or 0's) together, for which you need 16 1's, etc., and if so, how do you identify this condition?
Cameron
09-11-2013 11:36 AM
Are they always all 1's and/or all 0's? Do they alternate as in the example? Why are there missing data? Is this something that should be fixed before parsing the string?