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

조회 수: 10 (최근 30일)
Sarah A
Sarah A 2018년 9월 12일
답변: Sarah A 2018년 9월 12일
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
Kevin Chng
Kevin Chng 2018년 9월 12일
Hi,
string1 = '10111011';
string2 = '10101010';
string3 = strcat(string1,string2);
try the code above, hope it help you.

댓글을 달려면 로그인하십시오.

답변 (2개)

Andrei Bobrov
Andrei Bobrov 2018년 9월 12일
a = string('10111011');
b = string('10101010');
a + b

Sarah A
Sarah A 2018년 9월 12일
No, actually I just got the answer here answered by Walter Roberson

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by