MATLAB Answers

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

2 views (last 30 days)
Sarah A
Sarah A on 12 Sep 2018
Answered: Sarah A on 12 Sep 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 Comment

Kevin Chng
Kevin Chng on 12 Sep 2018
Hi,
string1 = '10111011';
string2 = '10101010';
string3 = strcat(string1,string2);
try the code above, hope it help you.

Sign in to comment.

Answers (2)

Andrei Bobrov
Andrei Bobrov on 12 Sep 2018
a = string('10111011');
b = string('10101010');
a + b

  0 Comments

Sign in to comment.


Sign in to answer this question.


Translated by