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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by