reading a TAB-separated file
dbateman at free.fr
Sat Sep 16 07:34:36 CDT 2006
I don't think its easy to do what you want with the 2.1.x octave-forge
regexp. However I believe that you can parse the entire file with a
single regexp in 2.9.x with following
fid = fopen("myfile");
str = char(fread(fid)');
d = regexp(str,'^\s*([^\s\t]+)\s*\t+\s*([^\s\t]+).*$', ...
Which is in fact also matlab compatible.
More information about the Help-octave