memory - Importing large amount of data into MATLAB? -
I have a text file which is ~ 80MB, it has 2 columns and approximately 6A6 rows. I import the data into MATLAB I want to do it, but there is too much data to do with the load function. I'm playing with the popen function, but nothing can do to work
Ideally I want to import and import the first call of data and finally put it in a large array in MATLAB . If this is not possible, then I would like to divide it into the arrays of 34,013 in length. I would like to do the same for the second column of data.
fileID = fopen ('yourfilename.txt'); FormatSpec = '% f% f'; Whereas ~ feof (fileID) c = textscan (fileID, formatSpec, 34013); Edit:
You are getting an error, because there are two columns in C. I need you to take the column individually and handle them.
For example:
column1data = reshape (c (:, 1), 301113); Column2data = reshape (C (:, 2), 301113);
Comments
Post a Comment