[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: version & csvread
From: |
abl5 |
Subject: |
Re: version & csvread |
Date: |
Fri, 28 Oct 2005 16:27:36 -0400 (EDT) |
Stefan,
Yes, I can!
line of data:
1,1,,,2
> F = csvread('inc.txt')
F =
1 1 0 2
The line in my data that gives me an error has a lot of sequential commas,
and if I use only that line as input data, I get a size of 74 columns
rather than the correct 84. So... I missed some whitespace.
I notice that Octave translates empty cells as "0"; does it have a way to
mark them as empty without assigning a numeric value?
Arwen
On Wed, 26 Oct 2005, Stefan van der Walt wrote:
> Arwen,
>
> Try to produce a minimalistic example of your problem. For example,
> can you produce the error in a datafile with only one line? If so,
> post the line of data and the command that fails here.
>
> Regards
> Stéfan
>
> On Wed, Oct 26, 2005 at 01:44:46PM -0400, address@hidden wrote:
> > Hi,
> >
> > I am running into a problem with csvread & both tab-delimited and
> > comma-separated values files. The files are read in as having one row too
> > many. So far I've successfully eliminated whitespaces and strings, and
> > I've confirmed that the files are read correctly in Matlab. Searching &
> > Googling haven't resulted in much csvread/write info since about 2004, and
> > there doesn't seem to be a definite "error here" -- does my problem sound
> > familiar to anybody?
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
>
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------