How to import large data file in function in matlab?

I have a satellite data values stored in a .dat file of almost 900 MB. The data is in the form of int8. I want to read as much data as possible from the start and then pass it in a function argument and then save the new signal in a separate file. I have used importdata but it cant work and unable to read large data file. Is there any other way which I can use to read data in chunks and put them together afterwards? Anyone please help me out. Its very important that I read this data.
The specifications of software, platform & PC are:
Matlab R2015a. Windows 7 64-bit, Core i5 1st Gen., 4 GB RAM, 250 of hard Disk Space

8 件のコメント

Bob Thompson
Bob Thompson 2018 年 7 月 26 日
Is it possible to break apart the file manually, and read the different sections?
Sheikh Alsheikh
Sheikh Alsheikh 2018 年 7 月 26 日
actually I have no knowledge about number of rows and column of data or synchronization, i am unable to break or even process my file whenever i give any command it turn into long lasting processing so i have to terminate
Bob Thompson
Bob Thompson 2018 年 7 月 26 日
編集済み: Bob Thompson 2018 年 7 月 26 日
Does Matlab give you a memory error? Or does it just take forever to load? 900MB is a pretty big file, so it will take Matlab a while to process it (probably several minutes).
An alternative option would be to open the file in a text editor (Textpad, Wordpad, etc.), and try to break the file apart that way.
dpb
dpb 2018 年 7 月 27 日
See
doc fread
and the sections on large files...
Sheikh Alsheikh
Sheikh Alsheikh 2018 年 7 月 27 日
Dear Bob When i used the Matlab Build in import data button an upload file in it , it show me whole file in three different variable in form just like excel format
Sheikh Alsheikh
Sheikh Alsheikh 2018 年 7 月 27 日
Thanx , dpd but i have to upload y file in a function argument
Guillaume
Guillaume 2018 年 7 月 27 日
The data is in the form of int8
What does that mean? Is the file a text file (as Bob assumed) or a binary file. Loading a 900MB binary file shouldn't take long.
dpb
dpb 2018 年 7 月 27 日
"have to upload y file in a function argument"
And what does that mean?
You have a large file; TMW supplies several tools to deal with those but to give any specific help we need at least a klew as to what it is that is the real problem, also specifically.

サインインしてコメントする。

回答 (1 件)

Karan Singh
Karan Singh 2025 年 2 月 4 日

0 投票

I think I have the perfect solution for you! You can check out this MathWorks documentation ( https://in.mathworks.com/help/matlab/large-files-and-big-data.html ), as it provides relevant details. I believe "Datastore" would be the best approach for your needs. https://in.mathworks.com/help/matlab/datastore.html
Karan

カテゴリ

ヘルプ センター および File ExchangeLarge Files and Big Data についてさらに検索

質問済み:

2018 年 7 月 26 日

回答済み:

2025 年 2 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by