How to concatenate the rows of char array containing 8-binary string ?

8 visualizaciones (últimos 30 días)
Sarah A
Sarah A el 12 de Sept. de 2018
Respondida: Sarah A el 12 de Sept. de 2018
Hello,
I got char array that have 8-binary string, for example:
10111011
10101010
and I want to concatenate them in this way : 1011101110101010
so any suggestions ?
Regards,
  1 comentario
Kevin Chng
Kevin Chng el 12 de Sept. de 2018
Hi,
string1 = '10111011';
string2 = '10101010';
string3 = strcat(string1,string2);
try the code above, hope it help you.

Iniciar sesión para comentar.

Respuestas (2)

Andrei Bobrov
Andrei Bobrov el 12 de Sept. de 2018
a = string('10111011');
b = string('10101010');
a + b

Sarah A
Sarah A el 12 de Sept. de 2018
No, actually I just got the answer here answered by Walter Roberson

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by