How extract a specific digit from binary number
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi ,
i have this code in binary form : start from left (b=12) to right (b=1)
" 1 1 1 1 0 0 1 0 0 0 0 0 "
i need extract the digits under the lines only with same arrange such as : (1 1 0 0)
please how can do that? i used the following code but gave me error !
{Error using bitget
Inputs must be numeric}.
b= '111100100000'
bitpattern = bitget(bin1, 7:10 )
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 ISO/IEC TS 17961 Rules에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!