read binary number

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 16 de Ag. de 2011

0 votos

doc fread
sounds like what you might be looking for.

1 comentario

Walter Roberson
Walter Roberson el 16 de Ag. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by