Filter löschen
Filter löschen

A substitute instead of strcat()

3 Ansichten (letzte 30 Tage)
ck
ck am 13 Sep. 2016
Beantwortet: Walter Roberson am 13 Sep. 2016
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.

Antworten (1)

Walter Roberson
Walter Roberson am 13 Sep. 2016
reshape(YourVector, 8, []).'

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by