필터 지우기
필터 지우기

Binary values

조회 수: 1 (최근 30일)
Sujan
Sujan 2012년 5월 3일
How do I assign the value in Binary format to a uint8/uint16 variable ?
  댓글 수: 3
Sujan
Sujan 2012년 5월 4일
for examples, I have to set a = '10101111'.
Walter Roberson
Walter Roberson 2012년 5월 4일
uint8(bin2dec(a))

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 5월 3일
uint8(bin2dec(TheString))
or use bitset()

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by