A substitute instead of strcat()

조회 수: 1 (최근 30일)
ck
ck 2016년 9월 13일
답변: Walter Roberson 2016년 9월 13일
I have binary data with one in each row as below:
0
0
1
0
1
1
and so on, i need to concatenate them into eight bits each like: 01010000 01011111 00000000 ..... , i could think of other way than using strcat() which makes it a character. How can i concatenate them other than strcat()?
Thank you.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 9월 13일
reshape(YourVector, 8, []).'

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by