Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
yogya
yogya el 27 de Oct. de 2014
Comentada: yogya el 27 de Oct. de 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

Respuesta aceptada

Mohammad Abouali
Mohammad Abouali el 27 de Oct. de 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

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by