How extract a specific digit from binary number
8 次查看(过去 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 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!