Binary Bit Masking
40 次查看(过去 30 天)
显示 更早的评论
What is the easiest way to bit mask a 16 bit binary value to decode different fields (2 bit, 4 bit, etc) with it? Thanks
0 个评论
采纳的回答
更多回答(2 个)
Walter Roberson
2011-11-16
You could use bitand() and bitshift() too. Or just bitget().
Watch out for the bit numbering order that MATLAB uses.
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Functions for Programming and Data Types 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!