help-octave
[Top][All Lists]
Advanced

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

reading CSV files with unquoted strings


From: CdeMills
Subject: reading CSV files with unquoted strings
Date: Thu, 6 May 2010 06:11:38 -0700 (PDT)

Hello,

an instrument export its data as CSV, but strings are unquoted:
DataName, DcMon, AcMon
DataValue, 0.003, 0.05

and so on. I tried:
dlmread, but it can't extract the 'DataName' line
csv2cell, but it won't work with an empty a string separator.

Is there some routine which would, for each field, try to convert it to a
number; if it succeeds then store it as a number, otherwise store it as a
string ?

My purpose is to NOT reinvent a csv parser.

Regards

Pascal  
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/reading-CSV-files-with-unquoted-strings-tp2132603p2132603.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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