|
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) |
[snip]
Andreas Weber-3 wroteWhy 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 notwork well with the format of the files I am using. The first commaseparated 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
[Prev in Thread] | Current Thread | [Next in Thread] |