Converting from Binary to Text

5 ビュー (過去 30 日間)
Jared
Jared 2012 年 11 月 27 日
I receive a binary bit stream, of 7 ascii bits per letter, into an array. I convert it to char by doing the following:
out=char(bin2dec(num2str(reshape(rx_bit_stream,7,[])).'));
However, the output is in the format:
T
e
s
t
How can I make it:
Test
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 11 月 27 日
Note: Instead of using num2str(expression) you can use char('0' + expression)

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2012 年 11 月 27 日
Looks like a column vector and you want a row vector, so how about
out = out'; % Transpose.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by