Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
dpb
Posts:
6,677
Registered:
6/7/07
|
|
Re: unable to open csv file
Posted:
Feb 18, 2013 9:39 AM
|
|
On 2/18/2013 4:10 AM, neetesh wrote: > dpb <none@non.net> wrote in message <kfgacn$lvp$1@speranza.aioe.org>... >> On 2/13/2013 5:06 AM, neetesh wrote: >> ... >> >> > The csv file just has numbers ( -ve and + ve ones). >> > no letters >> >> The error you posted before indicated a '\n' didn't fit the pattern. I >> suspect one or more blank records or maybe not all records are same >> length... >> >> > >> > I changed to txt file. still it doesn't work. >> >> Wouldn't expect it to... >> >> > is there a way to attach the file here, so that you guys can examine >> >> Cut and paste a (Small) section that demonstrates the problem... >> > Sorry for late reply > a small section of the data > > -16 -15 -14 6 -19 -21 -32 22 5 2 > > -16 -8 -5 -9 -32 -39 -19 -2 -3 1 ...
> -23 -9 -20 -4 -21 0 -9 11 27 -19 > > -27 -28 -5 -7 3 -18 -19 1 -18 -2
OK, that looks like I had suggested/surmised before--are the blank lines actually in the file, not a figment of the posting? If so, either resave the file removing them or write a format string that explicitly deals with them--the "plain vanilla" functions expect a regular file format w/o such complexities so you've got to handle it.
From the Matlab end it would be better/simpler to create the input file w/o the blank lines...
--
|
|
|
|