필터 지우기
필터 지우기

bitget() and MSB/LSB

조회 수: 8 (최근 30일)
David C
David C 2011년 9월 28일
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

채택된 답변

Jan
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.
  댓글 수: 1
David C
David C 2011년 10월 2일
Thanks Jan!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by