read binary number
2 ビュー (過去 30 日間)
古いコメントを表示
hi,
s there any function can read binary number, but each two bits alone?
thanks
0 件のコメント
採用された回答
Sean de Wolski
2011 年 8 月 16 日
doc fread
sounds like what you might be looking for.
1 件のコメント
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 件)
参考
カテゴリ
Help Center および File Exchange で Reference Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!