how can i convert array of bits into single bit stream?

2 vues (au cours des 30 derniers jours)
yogya
yogya le 27 Oct 2014
Commenté : yogya le 27 Oct 2014
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

Réponse acceptée

Mohammad Abouali
Mohammad Abouali le 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

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by