hi,
s there any function can read binary number, but each two bits alone?
thanks

 채택된 답변

Sean de Wolski
Sean de Wolski 2011년 8월 16일

0 개 추천

doc fread
sounds like what you might be looking for.

댓글 수: 1

Walter Roberson
Walter Roberson 2011년 8월 16일
Yes, you can use a "precision" of 'bit2' to read two bits at a time in fread from a file. This is *not* available, though, for fread() from a device (in particular not for a serial port.)
In my experience, if you are not developing a communications protocol of the varieties supported in the Communications Toolbox (e.g., error correcting codes applied to communications with a satellite), then reading a bit or two at a time is probably not necessary or efficient.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 LabVIEW에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by