|
You can write your own import function using fopen:
Assuming your data looks something like this:
Comments
2.35 93.1 294.1 593.1
23.1 345.4 127812947.12834 1282881.1
Then:
A = zeros(100000, 101); % This is ~ 800MB, are you sure you have enough memory?
fid = fopen('data.txt', 'r');
row = 1;
% Skip first line
tline = fgetl(fid);
while 1
tline = fgetl(fid);
if ~ischar(tline), break, end
A(row, :) = str2double(regexp(tline, ' ', 'split'));
end
fclose(fid);
If you have binary data, use fread instead.
Good luck.
"Sven B?" <sven.boehm@contiautomotive.com> wrote in message <giajg4$f3t$1@fred.mathworks.com>...
> Hi,
> from my PSPICE-simulation I get a text-file with the simulated data.
> The text file is approx. 500MB.
> The data in the file consists of 101 columns and approx. 100000 rows.
> For Matlab it is not possible to import this file via the Import Wizard.
> The first row is normal text, the others should be numbers.
> The first row has no special delimiter. Sometimes there are 2 sometimes 4 blanks as delimiter.
> Each column is the result of a Monte Carlo analysis.
>
> The Import wizard starts up an then hangs on the point "creating preview".
>
> Does anyone can help me?
>
> Regards,
>
> Sven
|