フィルターのクリア

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 Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by