reading a large binary file in MATLAB
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hello,
I have to read in a large Binary file whose size is 92,504 KB. When I am using fread command MATLAB is giving me error
Error using fread Out of memory. Type HELP MEMORY for your options.
I tried to restart MATLAB also so that if I am using any virtual memory it should be cleared but still the problem persists.
How can I solve this problem of reading data.
8 件のコメント
dpb
2013 年 7 月 5 日
what does the MEMORY command show on your machine (type 'memory' at command prompt and post results...)
Try the long form
[UV,SV]=memory
and look specifically at
SV.PhysicalMemory.Available/1024/1024
Which version ML and OS?
Ricky
2013 年 7 月 5 日
Ricky
2013 年 7 月 5 日
Ricky
2013 年 7 月 5 日
Joseph Areeda
2013 年 7 月 5 日
what does your fread statement look like?
I've been reading 50 MB files with:
in=fopen(fname,'r');
x=fread(in,inf,'*double', 0, 'b');
I've found out of memory can sometimes be misleading.
Joe
Ricky
2013 年 7 月 5 日
Ricky
2013 年 7 月 5 日
回答 (1 件)
Walter Roberson
2013 年 7 月 5 日
0 投票
fread(fid,'uint8') reads uint8 data and converts it to double. You should leave it as uint8 using fread(fid,'*uint8')
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!