help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
what's a fast way to read ascii data?
From
:
Dr. Johannes Zellner
Subject
:
what's a fast way to read ascii data?
Date
:
Thu, 2 Jul 2009 22:56:53 +0200
Hi,
I'd like to read ascii data like this:
1 2 3 4
5 6 7 8
....
some text
9 10 11 12
13 14 15 16
...
some more text
so esentially, I've some lines and columns of numeric data but sometimes there's also a line of text.
I'm interested mainly in reading the numeric data.
If I do it like this:
istream = fopen(fname, 'r');
while -1 != (vstr = fgets(istream))
items = str2double(vstr);
if ~isnan(items) && length(items) == 4
....
it is really slow.
Any hints to do this faster?
Johannes
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
what's a fast way to read ascii data?
,
Dr. Johannes Zellner
<=
Re: what's a fast way to read ascii data?
,
Judd Storrs
,
2009/07/02
Prev by Date:
Re: Xoctave - Human interface to GNU Octave
Next by Date:
OCST: Gain Margin
Previous by thread:
Re: Xoctave - Human interface to GNU Octave
Next by thread:
Re: what's a fast way to read ascii data?
Index(es):
Date
Thread