read binary number
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hi,
s there any function can read binary number, but each two bits alone?
thanks
0 Commenti
Risposta accettata
Sean de Wolski
il 16 Ago 2011
doc fread
sounds like what you might be looking for.
1 Commento
Walter Roberson
il 16 Ago 2011
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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Reference Applications in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!