char to binary converting

17 ビュー (過去 30 日間)
Trevor Badji
Trevor Badji 2018 年 3 月 8 日
回答済み: David Fletcher 2018 年 3 月 8 日
I have this Char. I need to apply binary symmetric channel on it. So these chars must be binary. How Can I convert them ?
  1 件のコメント
Stephen23
Stephen23 2018 年 3 月 8 日
What does "binary" mean to you?

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

回答 (1 件)

David Fletcher
David Fletcher 2018 年 3 月 8 日
bin2dec(string) will convert your string to a decimal equivalent. The underlying representation of the decimal number will be binary, but if you need an actual series of 1's and zero's then decimalToBinaryVector(decimalNumber) will convert the decimal to a binary vector, but note that that this will be a vector not a contiguous string of binary digits

カテゴリ

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