char to binary converting

17 Ansichten (letzte 30 Tage)
Trevor Badji
Trevor Badji am 8 Mär. 2018
Beantwortet: David Fletcher am 8 Mär. 2018
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 Kommentar
Stephen23
Stephen23 am 8 Mär. 2018
What does "binary" mean to you?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

David Fletcher
David Fletcher am 8 Mär. 2018
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

Kategorien

Mehr zu Data Type Conversion 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