A substitute instead of strcat()

1 次查看(过去 30 天)
ck
ck 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