[BUG] csvread

Mik Kim compand at yahoo.com
Thu Feb 28 10:30:20 CST 2008


When I use csvread on the following data, it only reports 4 columns. It seems blank columns are not handled well and skipped.

,,,5.73500008e-008,       0.232
,,,5.74000008e-008,        0.24
,,,5.74500008e-008,       0.244
,,,5.75000008e-008,       0.244
,,,5.75500008e-008,        0.22
,,,5.76000008e-008,       0.196
.
.
.

For above data, 
x=csvread('xxx.csv'); size(x)

shows
 285000        4

When I use the following data, it seems the rows with data in 5 columns are correct, but rows that begin with ,,, are missing one column.

"Record Length",500,"Points",5.73500008e-008,       0.232
"Sample Interval",5.00000007e-011,s,5.74000008e-008,        0.24
"Trigger Point",-1147,"Samples",5.74500008e-008,       0.244
"Trigger Time",3.40096975e-012,s,5.75000008e-008,       0.244
"",,,5.75500008e-008,        0.22
"Horizontal Offset",5.73999998e-008,s,5.76000008e-008,       0.196
"FastFrame Count",570,"Frames",5.76500008e-008,       0.176
,,,5.77000008e-008,       0.164
,,,5.77500008e-008,       0.156
,,,5.78000008e-008,       0.148
,,,5.78500008e-008,       0.144
.
.
.

For above data, 

x=csvread('xxx.csv'); size(x)


shows

 285000        5




-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080228/505c05f1/attachment.html 


More information about the Bug-octave mailing list