how can i convert array of bits into single bit stream?
4 views (last 30 days)
Show older comments
if following is the array maj =
Columns 1 through 16
0 0 1 1 1 0 1 0 0 1 1 0 1 1 1 1
Columns 17 through 32
1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 1
Columns 33 through 48
1 1 1 1 0 1 1 0 1 0 0 1 1 1 0 0
Columns 49 through 64
1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0
Then how can i convert to a single stream of bits such that it must be
0011101001101111111001100110011111110110100111001110100000000000
0 Comments
Accepted Answer
Mohammad Abouali
on 27 Oct 2014
Do you mean something like this?
a=round(rand(1,20))
a =
Columns 1 through 16
1 0 1 1 1 1 1 0 0 0 1 0 1 0 1 0
Columns 17 through 20
0 0 1 0
ac=num2str(a);
ac=ac(ac~=' ');
ac =
10111110001010100010
More Answers (0)
See Also
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!