I want to split a char array '1001' into 1 0 0 1 bits

조회 수: 1 (최근 30일)
Javadkhan Gurbanov
Javadkhan Gurbanov 2020년 10월 15일
댓글: madhan ravi 2020년 10월 15일
How do I split '1001' - char array, into 4 separate bits?

답변 (1개)

Matt J
Matt J 2020년 10월 15일
편집: Matt J 2020년 10월 15일
One way:
'1001' - '0'
ans = 1×4
1 0 0 1

카테고리

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