How do I import and read a large binary file?
古いコメントを表示
I have a 1.5GB binary file that was created via recording in GNURadio with an SDR. GNURadio documentation says this is a "pure" binary file and consists of 32 bits for the real part followed by 32 for the imaginary (complex float). My intent is to use fread if I can get the file opened.
Upon trying to open the file using uiimport MATLAB hangs with "opening a large text file" message and eventually errors with "out of memory". Machine has 16GB of RAM and there are no other significant processes running.
I only need a second or two of this data (if that) it's a BPSK signal and I'd like to be able to visualize the modulation.
I'm very new to MATLAB, using R2018. Thanks for any help!
1 件のコメント
Rik
2019 年 1 月 13 日
If you only need a small portion, it might be better to avoid 'smarter' tools like uiimport, and use fopen and fscanf to read your data.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で BPSK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!