char to binary converting

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 个)

David Fletcher
David Fletcher 2018-3-8

0 个投票

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

类别

在 帮助中心 和 File Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by