help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: import tab-delimited text file with header


From: Philip Nienhuis
Subject: Re: import tab-delimited text file with header
Date: Wed, 8 Sep 2010 12:53:14 -0700 (PDT)


fab wrote:
> 
> Hi all,
> 
> I am trying to import tab-delimited text files in Octave with one header
> line that look like this:
> 
> AAA BBB CCC ...
> 111 222 333 ...
> 444 555 NaN ...
> NaN 666 777 ...
> ...
> 
> I have installed the io and nan octave-forge packages and still no luck.
> 
> The load function gives me the error "error: load: failed to read matrix
> from file EDCLaserDust_1cm".
> 
> textread, dlmread, and csvread fail as well with errors that look like
> this (for a file with 4 columns):
> "error: `EDCLaserDust_1cm' undefined near line 15 column 17
> error: evaluating argument list element number 1
> error: evaluating argument list element number 1"
> 
> Does anyone have an idea on how to do this?
> Thanks
> Fabrice
> 

Unfortunately the io package (currently version 1.0.13 in octave-forge) has
csvread.m, csvwrite.m and dlmwrite.m included while these already have been
implemented in core octave since version ? 3.2.3 ?
I fixed this lately in octave-forge svn but too late for the io-1.0.13 pkg.

So, dive into /usr/share/octave/packages/io-1.0.13 and wipe these files to
get access to the core octave versions which -I suppose- work better (I'd be
surprised if they are worse).

P.

-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/import-tab-delimited-text-file-with-header-tp2530686p2531933.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]