help-octave
[Top][All Lists]
Advanced

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

Re: OT: why loadcsvfile was: How to use passed Octave string parameters


From: Terry Duell
Subject: Re: OT: why loadcsvfile was: How to use passed Octave string parameters in C code from an Oct file
Date: Sun, 23 Mar 2014 12:06:20 +1100
User-agent: Opera Mail/12.16 (Linux)

On Sun, 23 Mar 2014 11:40:09 +1100, mpender <address@hidden> wrote:

[snip]

Andreas Weber-3 wrote
Why do you want to implement a function to load csv files? Do you know
that there is already csvread and csvwrite in octave-core?

Yes; I started by trying those and found that the csvread routine does not
work well with the format of the files I am using.  The first comma
separated value in the file is an alphanumeric field that I need to preserve and csvread always attempts to interpret it as a number and turns it into a zero.


The io package on Octave-Forge (I think it was mentioned earlier), has csv2cell
and cell2csv. These functions should cope with your csv data.

Cheers,
--
Regards,
Terry Duell


reply via email to

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