[BUG] csvread
John W. Eaton
jwe at bevo.che.wisc.edu
Thu Feb 28 13:59:03 CST 2008
On 28-Feb-2008, Mik Kim wrote:
| 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
The csvread function is not a core Octave function. You should report
the bug to the maintainer of the package that includes csvread.
jwe
More information about the Bug-octave
mailing list