필터 지우기
필터 지우기

How to improve bit reading process in Matlab?

조회 수: 1 (최근 30일)
Star Rats
Star Rats 2019년 9월 6일
댓글: Star Rats 2020년 7월 18일
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
Walter Roberson
Walter Roberson 2019년 9월 12일
편집: Walter Roberson 2019년 9월 12일
Yes, you can use gpu array. However it will slow down your code.
Star Rats
Star Rats 2020년 7월 18일
Thanks @Walter for your help. You are definitely a Matlab magician!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by