bitget() and MSB/LSB
8 次查看(过去 30 天)
显示 更早的评论
Hi,
I would like to clarify the functionality of bitget(). In the documentation, it is noted that "The output of bitget is independent of the endian settings of the computer you are using."
Question: Would bitget(binaryVector,1) always return the LSB of binaryVector, regardless of whether my machine is big-endian or little-endian?
Thanks, David
0 个评论
采纳的回答
Jan
2011-9-28
Yes. BITGET is not influenced by the endianess of the machine. Therefore bitget(x, 1) and mod(x, 2) are equivalent, if x is a non-negative integer.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!