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
Stephen23
2018년 3월 8일
What does "binary" mean to you?
답변 (1개)
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!