Borrar filtros
Borrar filtros

How to improve bit reading process in Matlab?

1 visualización (últimos 30 días)
Star Rats
Star Rats el 6 de Sept. de 2019
Comentada: Star Rats el 18 de Jul. de 2020
I need to read a binary file and the Matlab coding is:
a = uint8(fread(fid,'ubit1')');
This is inefficient so I added a line below:
a = uint16(swapbytes(a));
But it doesn't help. Any other method to improve the bit reading process in Matlab?
  14 comentarios
Walter Roberson
Walter Roberson el 12 de Sept. de 2019
Editada: Walter Roberson el 12 de Sept. de 2019
Yes, you can use gpu array. However it will slow down your code.
Star Rats
Star Rats el 18 de Jul. de 2020
Thanks @Walter for your help. You are definitely a Matlab magician!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by